[pypy-commit] pypy py3k-reset-locale: initialize LC_CTYPE instead of LC_ALL

yuyichao noreply at buildbot.pypy.org
Wed Jul 9 03:02:44 CEST 2014


Author: Yichao Yu <yyc1992 at gmail.com>
Branch: py3k-reset-locale
Changeset: r72394:2bd3b970804c
Date: 2014-07-09 07:45 +0800
http://bitbucket.org/pypy/pypy/changeset/2bd3b970804c/

Log:	initialize LC_CTYPE instead of LC_ALL

diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -57,7 +57,7 @@
                 space.call_function(w_run_toplevel, w_call_startup_gateway)
                 if rlocale.HAVE_LANGINFO:
                     try:
-                        rlocale.setlocale(rlocale.LC_ALL, '')
+                        rlocale.setlocale(rlocale.LC_CTYPE, '')
                     except rlocale.LocaleError:
                         pass
                 w_executable = space.fsdecode(space.wrapbytes(argv[0]))


More information about the pypy-commit mailing list