fix mercurial encoding problem on windows

This commit is contained in:
Sebastian Sdorra
2012-05-21 11:19:20 +02:00
parent cac2f69c89
commit 780bc9de9d

View File

@@ -33,7 +33,7 @@
import sys, os
# import mercurial modules
from mercurial import hg, ui, commands
from mercurial import hg, ui, commands, encoding
from mercurial.node import hex
from xml.dom.minidom import Document
@@ -52,7 +52,7 @@ def createChildNode(doc, parentNode, name):
return node
def appendValue(doc, node, value):
textNode = doc.createTextNode(value)
textNode = doc.createTextNode(encoding.tolocal(value))
node.appendChild(textNode)
def appendTextNode(doc, parentNode, name, value):