[gs-cvs] rev 8098 - trunk/gs/lib
alexcher at ghostscript.com
alexcher at ghostscript.com
Wed Jul 4 07:11:23 PDT 2007
Author: alexcher
Date: 2007-07-04 07:11:22 -0700 (Wed, 04 Jul 2007)
New Revision: 8098
Modified:
trunk/gs/lib/ps2epsi
Log:
Make sed in pstoepsi correctly work independent of the current locale.
In LC_COLLATE=en_US{,.UTF-8} and a bunch of other locales '~' comes before '!'
when sorting, so you really cannot write !-~ but ~-! in those locales.
Bug 689325.
Modified: trunk/gs/lib/ps2epsi
===================================================================
--- trunk/gs/lib/ps2epsi 2007-07-03 18:21:38 UTC (rev 8097)
+++ trunk/gs/lib/ps2epsi 2007-07-04 14:11:22 UTC (rev 8098)
@@ -74,6 +74,7 @@
BEGINEPS
cat "${infile}" |
+LC_ALL=C \
sed -e '/^%%BeginPreview:/,/^%%EndPreview[^!-\~]*$/d' -e '/^%!PS-Adobe/d'\
-e '/^%%[A-Za-z][A-Za-z]*[^!-\~]*$/d' -e '/^%%[A-Za-z][A-Za-z]*: /d'
More information about the gs-cvs
mailing list