[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2017-05-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 94a3694c3dda97e3bcb51264bf47d948c5424d84 by Victor Stinner in branch '2.7': bpo-6393: Fix locale.getprerredencoding() on macOS (#1555) https://github.com/python/cpython/commit/94a3694c3dda97e3bcb51264bf47d948c5424d84 -- nosy: +haypo

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2017-05-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1651 ___ Python tracker ___ ___

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2010-02-10 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6393 ___ ___ Python-bugs-list

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-11-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6393 ___ ___

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-11-10 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The missing return result in the else case has been subsequently fixed in r75539 (py3k) and r75541 (3.0) so this issue should be re-closed. -- ___ Python tracker rep...@bugs.python.org

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-09-06 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I've applied the fixed version of my patch in r74687 (3.x) and r74688 (3.1). -- resolution: - fixed stage: - committed/rejected status: open - pending ___ Python tracker

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-17 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: I see this problem on both MacOS X 10.5 and on Windows. This is when using Python embedded inside of Apache/mod_wsgi. On MacOS X the error is: Fatal Python error: Py_Initialize: can't initialize sys standard streams ImportError:

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-17 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: Hmmm, actually my MacOS X error is different, although Windows one is same, except that encoding is listed and isn't empty. -- ___ Python tracker rep...@bugs.python.org

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-17 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: You can ignore my MacOS X example as that was caused by something else. My question still stands as to whether the fix will address the similar problem I saw on Windows. -- ___ Python

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-17 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: I have created issue6501 for my Windows variant of this problem given that it appears to be subtly different due to there being an encoding where as the MacOS X variant doesn't have one. Seeing that the fix for the MacOS X issue

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Once this patch is checked in, should we do an emergency 3.1.1 release? -- nosy: +benjamin.peterson, pitrou priority: - critical versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm don't know whether this is really worth a 3.1.1, all by itself. There's an easy workaround, which is for affected users to set their locale properly. -- ___ Python tracker

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: One *could* add a check in pythonrun.c to substitute some suitable default (UTF-8) if nl_langinfo(CODESET) returns an empty value. While googling for the source of this problem, I found other software projects that take this approach. It

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The manpage says that nl_langinfo returns an empty string when there is an invalid setting. There is validity in saying that 'LANG=utf-8' is an invalid setting, the LANG variable is supposed to a locale name, which would be a language

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: There is validity in saying that 'LANG=utf-8' is an invalid setting Agreed. But that doesn't really explain why e.g. LANG=en_US also produces , while LANG=invalid produces US-ASCII. I do wonder how the user ended up with LANG=utf-8 in

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The attached patch (issue6393-fix.patch) seems to fix the issue. Could you please test and have a look at the patch? It basicly tests if the output of nl_langinfo(CODESET) is the empty string and defaults to 'UTF-8' in that case (but

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Ronald! The patch fixes the problem for me. (I directly patched the locale.py file installed from the Python dmg, since I still haven't figured out how to build a python executable that exhibits this problem.) The patch doesn't look

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Good catch, the code in the else is indeed in the wrong order. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6393 ___

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks good and the patched patch also works in a py3k installer build. BTW, Mark, I was curious as to why you were unable to reproduce the problem with your own build. I should have mentioned that my testing was with complete installer (framework)

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Philipp
Changes by Philipp pkal...@googlemail.com: -- nosy: +Phil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6393 ___ ___ Python-bugs-list mailing list

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This is a side effect of the fix for Issue6202. Prior to r73268, locale.getpreferredencoding always returned mac-roman regardless of the setting of LANG, so this wasn't a problem in py3k (or 3.0.x builds) up through 3.1rc1. I can reproduce it on

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Note, you can produce the same error on OS X or linux by setting PYTHONIOENCODING=, which effectively overrides the value returned nl_langinfo(CODESET). In pythonrun.c, create_stdio passes PYTHONENCODING, if set, on as the encoding value to

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Ned Deily
Ned Deily n...@acm.org added the comment: ... create_stdio passes PYTHONIOENCODING ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6393 ___

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-01 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: There was a report[1] on c.l.p. that python3 from the OS X Python 3.1 dmg download at www.python.org/download/releases/3.1/ crashes on startup. I can reproduce this with the python.org download (using the OS X Terminal) only with a bad