Encoding crash on saving results
-
Virgil Dupras
- State changed from new to accepted
- Assigned user set to Virgil Dupras
I can reproduce this bug by programatically renaming a file under Ubuntu with a name that has '\udc85' in it. Then, the file manager will display "(invalid encoding)" next to the name. Try to scan that and the save the results, you get this crash. We should try to encode pathnames before saving and then if it doesn't work, just don't save the file and emit a warning.
-
Virgil Dupras
- State changed from accepted to invalid
Oh well, after lots of messing around wondering why I can't reproduce the bug on my dev env, I discovered that etree in python 3.2 automatically works around this problem and replaces unencodable characters by xml entities. For example,
dc85will be replaced by�. I'm not fixing this as I'll soon move the linux version to ubuntu 11.04 (which has python 3.2) anyway.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.