Skip to content
Snippets Groups Projects
Commit 987ea468 authored by Bill Medland's avatar Bill Medland Committed by Alexandre Julliard
Browse files

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

quite a lot of DOS files.
parent 704d0353
No related merge requests found
...@@ -1307,6 +1307,11 @@ sub fix_file ...@@ -1307,6 +1307,11 @@ sub fix_file
my $rc_textinclude_state=0; my $rc_textinclude_state=0;
my @pack_stack; my @pack_stack;
while (<FILEI>) { while (<FILEI>) {
# Remove any trailing CtrlZ, which isn't strictly in the file
if (/\x1A/) {
s/\x1A//;
last if (/^$/)
}
$line++; $line++;
s/\r\n$/\n/; s/\r\n$/\n/;
if (!/\n$/) { if (!/\n$/) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment