[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2015-04-15 Thread Michael McFadden
Michael McFadden added the comment: Also fixes 19907? -- nosy: +flipmcf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___ ___

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Default encoding on Python 3 is UTF-8. You should declare your encoding at the top of file if it differs from UTF-8 or ASCII (i.e. # -*- coding: euc-jp -*-). Otherwise Python will reject your file (for Shift_JIS and EUC-JP) or produce incorrect result (for

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-09 Thread umedoblock
umedoblock added the comment: python3 output translate Japanese with pygettext.install(). EVERYTHING IS OK! please check to use a konnichiha.2.tar.gz. == please do below shell command. $ for f in `find . -name 'konnichiha.*.py'` ; do echo f=$f ;

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49b1fde510a6 by Serhiy Storchaka in branch '2.7': Issue #17156: pygettext.py now correctly escapes non-ascii characters. http://hg.python.org/cpython/rev/49b1fde510a6 New changeset cd59b398907d by Serhiy Storchaka in branch '3.2': Issue #17156:

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28992/pygettext.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 3.x, which correctly detects input file encoding and correctly escapes non-ascii output files if -E specified (and only if it specified). For 2.7 we should just negate an argument for make_escapes. -- components: +Unicode nosy:

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for 2.7. pygettext doesn't try to detect input encoding and transparently works with bytes, but it no longer escapes non-ascii bytes if -E is not specified. -- versions: +Python 2.7 Added file:

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread umedoblock
umedoblock added the comment: thanks serhiy.storchaka. I try to use Shift_JIS, UTF-8, ISO-2022-JP and EUC-JP. your patch detects UTF-8. However it doesn't detect Shift_JIS, ISO-2022-JP and EUC-JP. it misunderstand ISO-2022-JP charset is UTF-8. it raised UnicodeDecodeError when Shift_JIS,

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-08 Thread umedoblock
umedoblock added the comment: I use just a pygettext_unicode.patch. don't use a pygettext_unicode-2.7.patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock
New submission from umedoblock: I'd like to parse _('こんにちは'). However pygettext.py doesn't parse _('こんにちは'). pygettext.py said me 'IndexError'. now I attached pygettext.py.patch to fix a bug. I show you command history. $ pygettext.py -o - --verbose konnichiha.py ... #: konnichiha.py:6 msgid

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock
Changes by umedoblock umedobl...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28992/pygettext.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17156 ___

[issue17156] Tools/i18n/pygettext.py doesn't parse unicode string.

2013-02-07 Thread umedoblock
umedoblock added the comment: TOO SORRY. pygettext.py.patch umedoblock, 2013-02-08 10:32 is wrong a patch. please forget it. -- Added file: http://bugs.python.org/file28993/pygettext.py.patch ___ Python tracker rep...@bugs.python.org