Just in case sbcsgen.pl is fed an sbcs.dat with the wrong line
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 Jul 2008 17:06:57 +0000 (17:06 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 9 Jul 2008 17:06:57 +0000 (17:06 +0000)
endings, remove \r from input lines.

git-svn-id: svn://svn.tartarus.org/sgt/charset@8113 cda61777-01e9-0310-a592-d414129be87e

sbcsgen.pl

index 1907a1a..e2991b2 100644 (file)
@@ -35,6 +35,7 @@ my @sortpriority = ();
 
 while (<FOO>) {
     chomp;
+    y/\r\n//; # robustness in the face of strange line endings
     if (/^charset (.*)$/) {
        $charsetname = $1;
        @vals = ();