luahttp does not play file with a quote in their name
if a file has a quite ' in its name. vlc can not read it throught the luahttp interface. vlc with the "standard" interface can read it normally.
The following step allow to reproduce the bug. -find a perfectly usable video file on your hard drive. -copy it so that their is a quote in its name using "cp thisnameworks.ogv thisonedoesn'twork.ogv". Notice that the \ is only here to escape the quote in the shell. -start vlc with the luahttp interface with "vlc -I luahttp" -click on the open file icon -click on the browser button -go to the directory with the files you created -click on the name "thisonedoesn'twork.ogv" -add file:// at the begining of the input field. [*] (see at the bottom of this message for explanation) -click on play -nothing happens
I expect vlc to play my file. If I select the file "thisnameworks.ogv" instead, vlc plays the file properly. Using the standard/default interface of vlc plays both file without any issue.
In the terminal, one can see the following relevant lines:
[0x7fd0a0001d30] main input error: open of `file:///home/erik/tst/thisonedoesn'twork.ogv' failed [0x7fd0a0001d30] main input error: Your input can't be opened [0x7fd0a0001d30] main input error: VLC is unable to open the MRL 'file:///home/erik/tst/thisonedoesn'twork.ogv'. Check the log for details.
When using the standard/default vlc interface with verbosity -vvv. One can find in the log: [0x125ed40] main playlist debug: adding item `thisonedoesn'twork.ogv' ( file:///home/erik/tst/thisonedoesn%27twork.ogv ) [0x12690f0] qt4 interface debug: Adding a new MRL to recent ones: file:///home/erik/tst/thisonedoesn%27twork.ogv
I believe the luahttp interface should convert the quote to %1.1.3. Actually, if I fill "file:///home/erik/tst/thisonedoesn%27twork.ogv" in the input box, then the file plays correctly.
i was able to reproduce this bug on multiple versions of vlc: 1.1.3 and the current git repository (commit e887722f by Daniel Mierswa on february 21st).
Notice that the step marked by a [*] used to be automatic with vlc 1.1.3 but is mandatory with the git current commit. I do not know whether it is require or not with version 1.1.7. Should I fill a bug report for that particular issue as well ?