I posted this on the issue tracker.

http://www.pyinstaller.org/ticket/298

It seems that the reason for this issue is that windows environment
variables on windows are stored in another encoding than the internal
python unicode encoding.

As suggested, this bug could be fixed by converting all values in
'''os.environ['ENVIRONMENT_VARIABLE_NAME']''' to/from encoding contained
in ''sys.getfilesystemencoding()''.

However using the function ''sys.getfilesystemencoding()'' is in python
2.3+. So it would mean dropping compatibility for python 2.2.

Manipulating with ''os.environ'' is done on many places in pyinstaller
code and thus to fix this should be not as trivial as it seems.

I think it is not feasible to fix this in 1.5 since it would require a
lot of changes. I would recommend to fix this in svn and in any 1.5.x
bug fix release.


Damien Elmes píše v So 27. 11. 2010 v 08:46 -0800:
> I tried to post this on the issue tracker, but keep getting 500
> errors. I'm new to pyinstaller, and looks like I downloaded it right
> at the time 1.5rc1 was released.
> 
> The issue is foreign characters in usernames on Windows. It appears to
> be a problem on iu.py:153, where the user's home directory is tried.
> Might be possible to work around by decoding the path to unicode from
> sys.getfilesystemencoding(), but since I don't use any zip imports in
> my code I just added another exception for UnicodeEncodeError. Simple
> to test - create a new user and put some foreign characters in their
> name, then try to run your app. 

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to