[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 932de36903e7 by Ronald Oussoren in branch '2.7': (backport)Fix #10154 and #10090: locale normalizes the UTF-8 encoding to UTF-8 instead of UTF8 http://hg.python.org/cpython/rev/932de36903e7 New changeset 28e410eb86af by Ronald

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-17 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-17 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-17 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3d7cb852a176 by Ronald Oussoren in branch 'default': Fix for issue 10154, merge from 3.2 http://hg.python.org/cpython/rev/3d7cb852a176 -- ___ Python tracker rep...@bugs.python.org

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-07 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch implements the change that Marc-Andre proposed. I intend to apply this patch to all active branches later today (after some more testing) -- keywords: +patch Added file:

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-05-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Piotr Sikora wrote: Piotr Sikora piotr.sik...@frickle.com added the comment: It's the same on OpenBSD (and I'm pretty sure it's true for other BSDs as well). locale.resetlocale() Traceback (most recent call last): File stdin,

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-04-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - needs patch title: locale.normalize strips - from UTF-8, which fails on Mac - locale.normalize strips - from UTF-8, which fails on Mac versions: +Python 3.3 -Python 2.5, Python 2.6 ___ Python

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-04-22 Thread Piotr Sikora
Piotr Sikora piotr.sik...@frickle.com added the comment: It's the same on OpenBSD (and I'm pretty sure it's true for other BSDs as well). locale.resetlocale() Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python2.6/locale.py, line 523, in resetlocale

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-02-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Bug confirmed on python2.5+ and python3.2-. If it works with the dash, is agree with the Marc-Andre solution. -- nosy: +Boris.FELD versions: +Python 2.5, Python 2.6 ___ Python tracker

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-12-08 Thread MunSic JEONG
MunSic JEONG rus...@gmail.com added the comment: Ubuntu 10.4.1 LTS also work fine with both UTF8 and UTF-8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-12-07 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: UTF-8 works on SuSE Enterprise Linux 9 and 10 as well. BTW, neither UTF8 nor UTF-8 work on HPUX 10. That platform requires spelling it as utf8. This sadly enought means that this code doesn't work on HPUX 10:

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Mandriva and Debian also work fine with both UTF8 and UTF-8. For the record, the canonical spelling inside /usr/share/locale is UTF-8. I suppose glibc does its own normalization. -- nosy: +pitrou ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-11-24 Thread MunSic JEONG
Changes by MunSic JEONG rus...@gmail.com: -- nosy: +ruseel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___ Python-bugs-list mailing

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-21 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: Mark, the locals() right before if encoding: (line 399) are: locale.normalize(en_US.UTF-8) {'code': 'en_US.ISO8859-1', 'langname': 'en_US', 'encoding': 'UTF8', 'norm_encoding': 'utf_8', 'defenc': 'ISO8859-1', 'localename': 'en_US.UTF-8',

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Stephen Hansen wrote: Stephen Hansen me+pyt...@ixokai.io added the comment: Mark, the locals() right before if encoding: (line 399) are: locale.normalize(en_US.UTF-8) {'code': 'en_US.ISO8859-1', 'langname': 'en_US', 'encoding':

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: If other Posix-y systems accept both spellings and only Macs insist on the dash, we should probably indeed change the alias entry to use it. -- nosy: +georg.brandl ___ Python tracker

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-20 Thread Stephen Hansen
New submission from Stephen Hansen me+pyt...@ixokai.io: In the course of investigating issue10092, Georg discovered that the behavior of locale.normalize() on Mac is bad. Basically, en_US.UTF-8 is how the correct locale string should be spelled on the Mac. If you drop the dash, it fails:

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-20 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This patch solves the immediate failure: Index: Lib/locale.py === --- Lib/locale.py (revision 85743) +++ Lib/locale.py (working copy) @@ -396,6 +396,9 @@

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-20 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: Removed file: http://bugs.python.org/file19300/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-10-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ronald Oussoren wrote: Ronald Oussoren ronaldousso...@mac.com added the comment: This patch solves the immediate failure: Index: Lib/locale.py === --- Lib/locale.py