[Python-apps-team] Bug#766316: Bug#766316: subdownloader: Fails to download substitles when having an accent in the path "=?UTF-8?Q?=C3=A9?="

Sylvestre Ledru sylvestre at debian.org
Wed Oct 22 09:19:04 UTC 2014


On 22/10/2014 11:09, Emilien Klein wrote:
> That sounds similar, but a tad different than #606993 and associated
> Launchpad bugs LP#913453 and LP#306589. Those were fixed by the
> 2.0.14-1.1 NMU upload, and the patch was applied upstream.
> I have removed that patch from the newest 2.0.18-1 package, as it is
> included in the upstream sources.
>
> This actual Exception is thrown when trying to log an error, which
> message would contain the path.
>
> The code path just prior to that error being logged is the following:
>
>     #Check if we have write permissions, otherwise show warning window
>     while True:
>         #If the file and the folder don't have writte access.
>         if not QFileInfo(destinationPath).isWritable() and not
> QFileInfo(QFileInfo(destinationPath).absoluteDir().path()).isWritable() :
>
> Sylvestre, I assume that folder exists, and that you have write access
> to it (please confirm), but a potential encoding issue in
> the destinationPath variable could result in either of these
> statements to return False:
> QFileInfo(destinationPath).isW
Confirmed. IMHO, it is "just" an encoding issue.

Cheers,
S



More information about the Python-apps-team mailing list