Unicode character in dir path cause UnicodeDecodeError: 'ascii' codec can't decode byte ...

Bug #1687723 reported by Jan M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SubDownloader
New
Undecided
Unassigned

Bug Description

If I have localized characters in path I'll not be able to download any subtitles. I'm on 64-bit 16.04.2 LTS (Xenial Xerus).

debug log:
----------
[20:20] DEBUG::subdownloader.gui.videotreeview # setVideos-> len(videoResults) = 8
[20:20] DEBUG::subdownloader.gui.main # Downloading to: '/home/dajohn/Sta\xc5\xbeen\xc3\xa9/Horace/1x2.cze.srt'
[20:20] DEBUG::subdownloader.gui.main # Trying to download subtitle '/home/dajohn/Stažené/Horace/1x2.cze.srt'
Traceback (most recent call last):
  File "/usr/share/pyshared/subdownloader/gui/main.py", line 1071, in onButtonDownload
    _("%s cannot be saved.\nCheck that the folder exists and you have write-access permissions.") %destinationPath ,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 16: ordinal not in range(128)

Package details:
----------------
Package: subdownloader
Priority: optional
Section: universe/utils
Installed-Size: 2797
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Python Applications Packaging Team <email address hidden>
Architecture: all
Version: 2.0.18-2
Replaces: subdownloader-cli
Depends: python:any (<< 2.8), python:any (>= 2.7.5-5~), python (>= 2.6.6-3~), python-crypto, python-kaa-metadata
Recommends: python-qt4
Conflicts: subdownloader-cli
Filename: pool/universe/s/subdownloader/subdownloader_2.0.18-2_all.deb
Size: 646388
MD5sum: bdf050f0c9860befc49b0c204f82cd36
SHA1: ecfb5deb1fd12c7acb661b38a012dbddc9196477
SHA256: 79eba75a69acaf116127b92dcb9d5c45f39191e3a23ff8cf5f7674518a15b185
Description-en: subtitle download/upload manager for video files
 SubDownloader is a tool to automatically download/upload subtitles
 for video files (DIVX, MPEG, AVI, etc.) and DVDs using fast hashing.
 .
 Features:
   * Fast hashing algorithm (27 GB movies/7 seconds)
   * Recursively folders search
   * Autodetect language of the subtitles
   * Upload entire series seasons subtitles in less than 1 minute
 .
 This package contains the GUI front-end, common files and a cli interface.
Description-md5: 7a90c06d5c209816dff649752e1c0068
Homepage: http://www.subdownloader.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Revision history for this message
Jan M. (czechdude) wrote :

So long and no answer at all? Is this project dead? :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.