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:
parent
704d035364
commit
987ea4688b
|
@ -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$/) {
|
||||
|
|
Loading…
Reference in New Issue