A multi-byte character is destroyed in the function "shellescape". #20

Open
zeet opened this Issue Jan 25, 2011 · 0 comments

Comments

Projects
None yet
1 participant

zeet commented Jan 25, 2011

A multi-byte character is destroyed in the function "shellescape".
Therefore, the track data does not pass correctly to shell command.

I tried following change.
It works well.

--- interface.c
@@ -544,546 +544,546 @@
for(n = 0; n < strlen(string); ++n) {
-  if(!isalnum(string[n]))
+  if(strchr("!\"$&'()*,:;<=>?[\\]^`{|} ", string[n]) != NULL)
    escaped[length++] = '\\';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment