1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-31 02:32:49 -05:00

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 :-)
This commit is contained in:
Simon Tatham 2022-09-01 19:37:17 +01:00
parent a01deea1b1
commit e6f9df9208

View File

@ -38,7 +38,7 @@ my @charsetnames = ();
my @sortpriority = (); my @sortpriority = ();
while (<FOO>) { while (<FOO>) {
chomp; chomp; y/\r//d;
if (/^charset (.*)$/) { if (/^charset (.*)$/) {
$charsetname = $1; $charsetname = $1;
@vals = (); @vals = ();