From: simon Date: Wed, 9 Jul 2008 17:06:57 +0000 (+0000) Subject: Just in case sbcsgen.pl is fed an sbcs.dat with the wrong line X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/charset/commitdiff_plain/86e28c9b3a6020ad5c9639d331ee34ee1ac17ee2 Just in case sbcsgen.pl is fed an sbcs.dat with the wrong line endings, remove \r from input lines. git-svn-id: svn://svn.tartarus.org/sgt/charset@8113 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sbcsgen.pl b/sbcsgen.pl index 1907a1a..e2991b2 100644 --- a/sbcsgen.pl +++ b/sbcsgen.pl @@ -35,6 +35,7 @@ my @sortpriority = (); while () { chomp; + y/\r\n//; # robustness in the face of strange line endings if (/^charset (.*)$/) { $charsetname = $1; @vals = ();