Hi all, first post, please be nice.. :o)
I can't find a way to set a codec alias in my frozen script. As my console
has to run in codepage 65001 (utf-8) or 10000 (utf-16), which for some
reason aren't codec names known to Python out of the box, I've added aliases
for these to <python 31 home>\lib\encoders\aliases.py so that python knows
how to initialise the console on startup when it queries the console for its
current codepage and sees one of these values.
However that doesn't work when my script gets frozen. Furthermore, the
frozen version doesn't seem to pay attention to the PYTHONIOENCODING
environment variable, as the normal interpreter does, which is another way I
could tell it what to use.
Is this a known problem? Is there a workaround?
I've tried including all the encoding related modules I can think of
(including encodings.aliases) in the cxfreeze.bat --include-modules
parameter, but it didn't help. I obviously can't do anything to help in my
actual script, as this is an issue for python startup, before my script gets
to run.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to