Mail Archives: cygwin/2009/10/21/22:05:55
t.a.n.s.t.a.a.f.l@ wrote:
> [ ... ] but as can be seen by the attached files, the downloaded
> gawk executable always changes CRLF to LF,
Is this what you're looking for?
> File: gawk.info, Node: User-modified, Next: Auto-set, Up: Built-in Variables
>
> 6.5.1 Built-in Variables That Control `awk'
> -------------------------------------------
[ ... snip ... ]
> `BINMODE #'
> On non-POSIX systems, this variable specifies use of binary mode
> for all I/O. Numeric values of one, two, or three specify that
[ ... snip ... ]
> but `gawk' generates a warning message. `BINMODE' is described in
> more detail in *note PC Using::.
[ ... snip ... ]
Or this?
> File: gawk.info, Node: PC Using, Next: Cygwin, Prev: PC Dynamic, Up: PC Ins\
> tallation
>
> B.3.3.4 Using `gawk' on PC Operating Systems
> ............................................
[ ... snip ... ]
> Under OS/2 and DOS, `gawk' (and many other text programs) silently
> translate end-of-line `"\r\n"' to `"\n"' on input and `"\n"' to
> `"\r\n"' on output. A special `BINMODE' variable allows control over
> these translations and is interpreted as follows:
[ ... continues ... ]
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -