Just in case sbcsgen.pl is fed an sbcs.dat with the wrong line
[sgt/charset] / 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 = ();