[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] Win-dos GAWK and BINMODE bug
From: |
Eli Zaretskii |
Subject: |
Re: [patch] Win-dos GAWK and BINMODE bug |
Date: |
Fri, 20 Sep 2002 23:32:57 +0300 |
> From: Stepan Kasal <address@hidden>
> Date: Wed, 18 Sep 2002 12:55:08 +0200
>
> BEGIN\
> {
> BINMODE = "w"
> printf("%c", 10) > "Testfile.bin" # is the same: printf("\n") ...
> }
>
> should produce a file "Testfile.bin" containing only one char---'\n'.
>
> In most win32 ports (eg. from http://unxutils.sourceforge.net),
> it produces '\r\n' though.
>
> The Gnuwin32 port works correctly.
> (The status of Cygwin port is unclear to me (Stepan Kasal).)
FWIW, the DJGPP port produces what you expect.