Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

zeet opened this issue Jan 25, 2011 · 0 comments

Comments

@zeet
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant