Winemaker dos2unix - drop the CtrlZ
Medland, Bill
Bill.Medland at accpac.com
Thu Jul 12 12:02:01 CDT 2001
<<diff.txt>>
-------------- next part --------------
Bill Medland (medbi01 at accpac.com)
Get winemaker to drop the trailing CtrlZ that is still to be found
on quite a lot of DOS files.
Index: wine/tools/winemaker
===================================================================
RCS file: /home/wine/wine/tools/winemaker,v
retrieving revision 1.28
diff -u -r1.28 winemaker
--- wine/tools/winemaker 2001/06/04 02:50:29 1.28
+++ wine/tools/winemaker 2001/07/12 16:32:45
@@ -1307,6 +1307,11 @@
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$/) {
More information about the wine-patches
mailing list