[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: |
edgar . soldin |
Subject: |
Re: [Duplicity-talk] Fwd: [PATCH] --help with non-ascii system locale |
Date: |
Mon, 10 Oct 2011 23:38:36 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
pleasure, thanks for taking care.. the SIGN_PASSPHRASE issue is kind of nifty,
so the sooner the better ..
regards ede
On 10.10.2011 23:34, Kenneth Loafman wrote:
> 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.
>
> ...Ken
>
> On Mon, Oct 10, 2011 at 8:11 AM, <address@hidden <mailto: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?
>
> ..ede
>
> -------- 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 <mailto:address@hidden>>
> Reply-To: Discussion of the backup program duplicity <address@hidden
> <mailto:address@hidden>>
> To: address@hidden <mailto: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,
> "replace"))
>
> 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:
>
>
> http://stackoverflow.com/questions/5545197/utf-8-error-with-python-and-gettext
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden <mailto:address@hidden>
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
>
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk