-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unicode on Windows #100
Comments
Additional details... Here's output for one run: FIDO v1.3.4 (formats-v88.xml, container-signature-20160121.xml, format_extensions.xml) The first directory ('????') is 人民建筑. In Fido.list_files, converting 'root' to unicode before the call to 'os.walk(root)' seems to allow the walk proceed; however, there is still an issue outputting results using the default handler 'handle_matches'. |
FWIW, I remember we once had the same problems in jpylyzer, which were solved by (if I remember well): Path walkInstead of OutputFor the outputting it is important that the encoding is explicitly set. In jpylyzer we use this:
And then write to stdout using something like this: out.write(whatever) See also the code in jpylyzer.py. |
@bitsgalore has also pointed out, it might be best to address this after the Python 3 upgrade, rather than before. |
closed by #200 in v1.6 |
Dev Effort
1D
Description
I'm running fido 1.3.4 on Ubuntu and on Windows 10. On Ubuntu, fido handles non-ascii file names correctly. On Windows fido will not process file/directory names with unicode (presumably utf16) names.
The text was updated successfully, but these errors were encountered: