#708 : Use default locale encoding #710

Merged
brvier merged 1 commits from patch-1 into master 2014-08-28 19:38:25 +02:00
brvier commented 2014-08-28 13:39:54 +02:00 (Migrated from github.com)

Use locale endoding else this generate error in GU : as default time format can have non ascii char on non english locale, but using ascii in locale can generate UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 :

In PyBitmessage/src/bitmessageqt/init.py"
l10n.formatTimestamp())

In PyBitmessage/src/l10n.py", line 81, in formatTimestamp
return unicode(timestring, encoding)

Use locale endoding else this generate error in GU : as default time format can have non ascii char on non english locale, but using ascii in locale can generate UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 : In PyBitmessage/src/bitmessageqt/**init**.py" l10n.formatTimestamp()) In PyBitmessage/src/l10n.py", line 81, in formatTimestamp return unicode(timestring, encoding)
DarkRedman commented 2014-09-11 22:16:51 +02:00 (Migrated from github.com)

Thanks for the fix :)

Thanks for the fix :)
bmng-dev commented 2014-09-20 14:02:48 +02:00 (Migrated from github.com)

I suspected that the locale issues could be resolved with a simple call to locale.setLocale but I assumed that there was a very good reason (which no one would enlighten to me) something so basic this wasn't being done.

I suspected that the locale issues could be resolved with a simple call to `locale.setLocale` but I assumed that there was a very good reason (which no one would enlighten to me) something so basic this wasn't being done.
This repo is archived. You cannot comment on pull requests.
No description provided.