From e6f9df92085d9f5679feff8cec6f44588fb44de0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 1 Sep 2022 19:37:17 +0100 Subject: [PATCH] sbcsgen.pl: handle \r\n line endings. These show up if you build from the Windows source archive on Unix, which is an odd thing to be trying to do, but I managed it myself the other day by accident :-) --- charset/sbcsgen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charset/sbcsgen.pl b/charset/sbcsgen.pl index bedf6b36..6012c933 100755 --- a/charset/sbcsgen.pl +++ b/charset/sbcsgen.pl @@ -38,7 +38,7 @@ my @charsetnames = (); my @sortpriority = (); while () { - chomp; + chomp; y/\r//d; if (/^charset (.*)$/) { $charsetname = $1; @vals = ();