Message256446
os.stat() raises exception UnicodeEncodeError when path is unicode and no locale is set in envinronment (this occures when running app with daemon tools -> LC_ALL=)
How to simulate:
$ env -i python
>>> import os
>>> os.stat(u"\xf0")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf0' in position 0: ordinal not in range(128)
Is this a valid behaviour? Then maybe some notification in documentation would be nice (I am using os.path.isfile and now UnicodeEncodeError raised...)
Thanks
Ondra |
|
Date |
User |
Action |
Args |
2015-12-15 08:33:11 | sejvlond | set | recipients:
+ sejvlond |
2015-12-15 08:33:11 | sejvlond | set | messageid: <1450168391.42.0.368048088305.issue25867@psf.upfronthosting.co.za> |
2015-12-15 08:33:11 | sejvlond | link | issue25867 messages |
2015-12-15 08:33:10 | sejvlond | create | |
|