New issue 2937: os functions return '??' for unicode characters in paths on 
windows
https://bitbucket.org/pypy/pypy/issues/2937/os-functions-return-for-unicode-characters

Creation Elemental:

I have a few files that contain emojis in their names, and also a folder that 
has such. Commands like `os.getcwd`, `os.listdir`, `os.path.realpath`, etc. 
will cause this to happen. This is also a problem with pure windows 
installations of python2. ( 
https://bugs.python.org/issue35670?@ok_message=msg%20333100%20created%0Aissue%2035670%20created&@template=item
 )

I have not yet been able to test if this happens on non-windows installations 
of pypy2.

For example, say you have a folder simply called '🔭'. If you run python inside 
of it and run `os.getcwd()` you will simply get `'??'` as the result. This 
breaks MANY of my programs that depend on knowing exactly where they are, and 
knowing the contents of a directory to pass to other functions.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to