[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset c256764e2b3f by Victor Stinner in branch '3.2': Issue #16455: On FreeBSD and Solaris, if the locale is C, the http://hg.python.org/cpython/rev/c256764e2b3f New changeset 5bb289e4fb35 by Victor Stinner in branch '3.3': (Merge 3.2) Issue #16455: On

[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread STINNER Victor
STINNER Victor added the comment: I backported the fix to Python 3.2 and 3.3 because I consider it important enough. -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16455

[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2013-01-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16455 ___

[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2012-12-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: sys.getfilesystemencoding() is not the locale encoding on FreeBSD and OpenSolaris when the locale is not set - Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2012-12-03 Thread STINNER Victor
STINNER Victor added the comment: We have two options, I don't know which one is the best (safer). Force ASCII is safer. Python should announce that it does not understand non-ASCII bytes on the command line. I also chose this option because isalpha(0xe9) returns 0 (even if mbstowcs(0xe9)

[issue16455] Decode command line arguments from ASCII on FreeBSD and Solaris if the locale is C

2012-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c25635b137cc by Victor Stinner in branch 'default': Issue #16455: On FreeBSD and Solaris, if the locale is C, the http://hg.python.org/cpython/rev/c25635b137cc This changeset should fix #16218 on FreeBSD and Solaris (these OS should now decode