Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r71631:a0805424875b
Date: 2014-05-21 10:50 -0700
http://bitbucket.org/pypy/pypy/changeset/a0805424875b/

Log:    ignore LocaleErrors

diff --git a/pypy/goal/targetpypystandalone.py 
b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -56,7 +56,10 @@
             try:
                 space.call_function(w_run_toplevel, w_call_startup_gateway)
                 if rlocale.HAVE_LANGINFO:
-                    rlocale.setlocale(rlocale.LC_ALL, '')
+                    try:
+                        rlocale.setlocale(rlocale.LC_ALL, '')
+                    except rlocale.LocaleError:
+                        pass
                 w_executable = space.fsdecode(space.wrapbytes(argv[0]))
                 w_argv = space.newlist([space.fsdecode(space.wrapbytes(s))
                                         for s in argv[1:]])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to