You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-01-06.12:27:04.885>created_at=<Date2019-01-06.10:26:47.304>labels= ['type-bug', 'OS-windows']
title="os functions return '??' for unicode characters in paths on windows"updated_at=<Date2019-01-06.20:46:19.597>user='https://bugs.python.org/CreationElemental'
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. However, this is only, as far as I can tell, happening on pure windows distributions. This does not happen in the cygwin64 version I have, nor does it happen in python3.
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.
This is a known issue. See for example bpo-13247 and bpo-16656. It cannot be fixed in Python 2. The only thing that can be done is to document it (see bpo-16700).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: