Page 1 of 1

Ampersands not correctly passed

Posted: June 10th, 2010, 9:24 pm
by Thermopyle
As seen in this sickbeard issue, Sabnzbd isn't correctly passing folder/file names with ampersands in them to post-processing scripts.

Re: Ampersands not correctly passed

Posted: June 11th, 2010, 7:39 am
by shypike
It's bug in Python's runtime system, exclusive to Windows.
"Hello & Goodbye.nzb" is passed OK, but "Hello&Goodbye.nzb" isn't.
The spaces in the first form trigger the library to add quotes, the lack of spaces in the second from omits quotes.
I'll see if I can create a work-around.
It's rather tricky, because more characters might have the same problem.

Edit:
I filed a bug report at python.org: http://bugs.python.org/issue8972
and will patch the runtime environment for the next 0.5.x release.