Get winemaker to drop the trailing CtrlZ that is still to be found on

quite a lot of DOS files.
This commit is contained in:
Bill Medland 2001-07-12 22:21:44 +00:00 committed by Alexandre Julliard
parent 704d035364
commit 987ea4688b
1 changed files with 5 additions and 0 deletions

View File

@ -1307,6 +1307,11 @@ sub fix_file
my $rc_textinclude_state=0;
my @pack_stack;
while (<FILEI>) {
# Remove any trailing CtrlZ, which isn't strictly in the file
if (/\x1A/) {
s/\x1A//;
last if (/^$/)
}
$line++;
s/\r\n$/\n/;
if (!/\n$/) {