[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-04-02 Thread Daniel Goertzen

Daniel Goertzen  added the comment:

It turns out that cx-freeze deliberately sets Py_IgnoreEnvironmentFlag to 
ensure that the final executable is really an isolated, standalone executable 
(ie, it can't be subverted by setting PYTHONPATH.)  Therefore the 
PYTHONIOENCODING work-around does not work in this situation.

I am currently using a cx-freeze work-around from the author to enable the 
PYTHONIOENCODING work-around.  Altogether not that pleasant.

Could Python 3 could just default to some reasonable encoding and keep on 
chugging?

--

___
Python tracker 
<http://bugs.python.org/issue6501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-04-01 Thread Daniel Goertzen

Daniel Goertzen  added the comment:

I run into this problem when I start a Python app as a subprocess from Erlang 
(open_port() function).  The PYTHONIOENCODING fix works when I launch my py app 
via pythonw.exe, but it does *not* work when I use the cx-freeze version of the 
app.

I am using the Win32GUI base for cx-freeze which appears to be a thin WinMain() 
wrapper around Py_Initialize().  I am going to continue investigating the 
cx-freeze related problems.

I am using Python 3.2 under Windows.  The failure is basically silent under 
Windows (generic MSVC runtime error), so I wasted a lot time figuring out what 
the problem actually was.  Python 2 doesn't seem to have this problem.

--
nosy: +Daniel.Goertzen

___
Python tracker 
<http://bugs.python.org/issue6501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4708] os.pipe should return inheritable descriptors (Windows)

2010-08-11 Thread Daniel Goertzen

Changes by Daniel Goertzen :


--
nosy: +Daniel.Goertzen

___
Python tracker 
<http://bugs.python.org/issue4708>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com