diff options
author | Danilo Šegan <danilo@src.gnome.org> | 2008-07-13 23:14:50 +0000 |
---|---|---|
committer | Danilo Šegan <danilo@src.gnome.org> | 2008-07-13 23:14:50 +0000 |
commit | a896a2df2e2a6a7ac2413df2403b68f202d54f90 (patch) | |
tree | 2b951b61d40c295e171a76789b8a9fa762145841 /xml2po | |
parent | 8597652854ea4d37303d226428d389b6ae6743e9 (diff) | |
download | gnome-doc-utils-a896a2df2e2a6a7ac2413df2403b68f202d54f90.tar.gz |
Apply patch to fix UnicodeDecodeError from Goran.
svn path=/trunk/; revision=1109
Diffstat (limited to 'xml2po')
-rw-r--r-- | xml2po/ChangeLog | 4 | ||||
-rwxr-xr-x | xml2po/xml2po.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/xml2po/ChangeLog b/xml2po/ChangeLog index c809fa6..f46a73f 100644 --- a/xml2po/ChangeLog +++ b/xml2po/ChangeLog @@ -1,3 +1,7 @@ +2008-07-14 Danilo Šegan <danilo@gnome.org> + + * xml2po.py: Apply Goran Rakić's patch for #437371. + 2007-03-16 Loïc Minier <lminier@svn.gnome.org> * Makefile.am: diff --git a/xml2po/xml2po.py b/xml2po/xml2po.py index c6bc9a3..9ac84cd 100755 --- a/xml2po/xml2po.py +++ b/xml2po/xml2po.py @@ -507,7 +507,7 @@ def processElementTag(node, replacements, restart = 0): if mode == 'merge': translation = getTranslation(outtxt, isSpacePreserveNode(node)) else: - translation = outtxt + translation = outtxt.decode('utf-8') starttag = startTagForNode(node) endtag = endTagForNode(node) |