texinfo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makeinfo and end-of-line format


From: Gavin Smith
Subject: Re: makeinfo and end-of-line format
Date: Thu, 11 Jun 2015 01:02:03 +0100

On 11 June 2015 at 00:19, Gavin Smith <address@hidden> wrote:
> I think that the "binmode" command needs to be used for this:

"binmode" is already used in Common.pm (open_out) if the encoding is
known. When are the \r bytes output under MS-Windows? You can test
this more easily than me.

Maybe the following is needed:

Index: Texinfo/Common.pm
===================================================================
--- Texinfo/Common.pm   (revision 6302)
+++ Texinfo/Common.pm   (working copy)
@@ -1069,6 +1069,8 @@ sub open_out($$;$)
       binmode($filehandle, ':bytes');
     }
     binmode($filehandle, ":encoding($encoding)");
+  } else {
+    binmode($filehandle);
   }
   if ($self) {
     push @{$self->{'opened_files'}}, $file;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]