This is a small patch. Despite that I do not think it is a real exploitable issue, I think this patch should go in. Without having it applied also the error message "sed: -e expression #1, char 42: Invalid range end" would appear. Downstream bugs: bugs.gentoo.org/128650 bugs.gentoo.org/128645
Created attachment 2201 [details] ghostscript-afpl-8.53-ps2epsi-afpl.diff
the first hunk is obviously not needed it has already been fixed, the second one is necessarry though. I have asked some people to test this and the outcoe was: 21:57 <@nick1> Seems it works with locale set to C, but only then 21:57 <@nick2> ah, that could be 21:58 <@nick1> I'm not quite sure why it does work with \~ though... 21:58 <@nick1> nick3, it fails for me with en_GB.UTF-8 When I try on my commandline: # sed -e 's:[!-~]::g' sed: -e expression #1, char 10: Invalid range end prefixed with LC_ALL=C it does not error out though
*** Bug 687304 has been marked as a duplicate of this bug. ***
second hunk was committed in r6803.