Skip to content
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

AssertionError: All filenames should be unicode #100

Open
GoogleCodeExporter opened this issue Jun 2, 2015 · 0 comments
Open

AssertionError: All filenames should be unicode #100

GoogleCodeExporter opened this issue Jun 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a file with a name that is not a legal sequence under the system 
preferred filename encoding (Usually utf8) You can create an illegal utf8 
filename with this commmand: python -c "open('illegal\xa0\xa1', 'w')" 
2. Import the file in boar

What is the expected output? What do you see instead?

The file should be imported into boar, alternatively a nice error message 
explaining the situation should be printed. Instead, an assertion error is 
raised.

This problem is caused by filenames that contain sequences that are not valid 
encodings. This can happen when moving files between platforms, if the files 
has been created with a different encoding than what is used on the platform 
where boar tries to import the file. Boar cannot know how such filenames should 
be interpreted, but it should handle the situation gracefully.

Original issue reported on code.google.com by ekb...@gmail.com on 11 Aug 2013 at 11:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant