Closed (duplicate)
Project:
ImageMagick
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2013 at 11:14 UTC
Updated:
1 Dec 2016 at 09:48 UTC
Jump to comment: Most recent
This is due to a limitation/bug in PHP, where escapeshellarg() removes some non-ASCII characters in certain cases. I've found that the following manual replacement works better (though it's horribly ugly):
/**
* A non-ASCII-character safe replacement of escapeshellarg().
*/
function escapeshellarg_special($file) {
return "'" . str_replace("'", "'\"'\"'", $file) . "'";
}
Not sure if there are other implications to this, but it's something to be considered. This module may be unusable for some countries without using the transliteration module or an ugly workaround like this.
Comments
Comment #1
a.ross commentedBy the way, I should note that this probably only works properly on linux. Or at least half properly :)
Comment #2
juliencarnot commentedIs this a duplicate bug?
Comment #3
a.ross commentedLooks like it
Comment #4
juliencarnot commentedClosing this in favor of #1502924 as it has more contributions and patches.