[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Fwd: [PATCH] --help with non-ascii system locale

From: Kenneth Loafman
Subject: Re: [Duplicity-talk] Fwd: [PATCH] --help with non-ascii system locale
Date: Mon, 10 Oct 2011 16:34:16 -0500

Ede, thanks for the fix for the Unicode problem.  It's in trunk now.

I updated the po/LINGUAS file to include the new languages.

All of this will be out in the next release, soon.


On Mon, Oct 10, 2011 at 8:11 AM, <address@hidden> wrote:
while having a look at this it occurred to me that the tgz releases are missing po files.
e.g. de

ken, could you please have a look at this?


-------- Original Message --------
Subject: [Duplicity-talk] [PATCH] --help with non-ascii system locale
Date: Mon, 10 Oct 2011 01:26:35 +0200
From: Wolfgang <address@hidden>
Reply-To: Discussion of the backup program duplicity <address@hidden>
To: address@hidden

 File "/usr/lib/python2.7/optparse.py", line 1669, in print_help
   file.write(self.format_help().encode(encoding, "replace"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2114:
ordinal not in range(128)

this is duplicity 0.6.15

LANG is de_DE.UTF-8

the help string passed to optparse is type str, containing utf-8 text.
The bug disappears if I change /usr/lib/python2.7/optparse.py:

-        file.write(self.format_help().encode(encoding, "replace"))
+        file.write(self.format_help().decode('utf-8').encode(encoding,

but that is of course not the right fix.

I found some hints about possible solutions but did not try to fix
it myself at this link:


Duplicity-talk mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]