Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bugs handling unicode file names
Fix crashes when handling non-ASCII characters in directory names and in track titles. In two places filenames were inadvertantly left as, or converted to, a plain non-unicode byte string. This caused decode errors when we tried to concatenate them with Unicode strings, and python attempted to automatically encode them as ASCII. In album_dir.py, the input path was left as a plain byte string, rather than being decoded as UTF-8. In rename.py the safe_filename() function was inadvertantly converting unicode input strings to plain byte strings in output, due to passing the input through a non-unicode format string.
- Loading branch information
Showing
4 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters