[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: failure in producing a single linefeed-character
From: |
Aharon Robbins |
Subject: |
Re: failure in producing a single linefeed-character |
Date: |
Tue, 24 Mar 2009 11:03:46 +0200 |
Hi. Apologies for the delayed reply. (Please in the future
send mails as plain text AND html, and not just html, thanks.)
This would seem to be a Windows issue; here is what I get
on Linux:
$ gawk "BEGIN {printf \"%c\", 10}" | od -x
0000000 000a
0000001
You may have better luck if you play with the BINMODE
variable; see the gawk doc for the details.
Thanks,
Arnold
> To: address@hidden
> Subject: failure in producing a single linefeed-character
> From: Christoph Heidermanns
> Date: Mon, 2 Mar 2009 15:40:43 +0100
>
> Hello gawk bug team,
>
> I think a found a bug in gawk 3.1.6:
>
> The following call is supposed to procude
> the single character file "test.txt" consisting only of the character
> 0A (LF)
>
> gawk "BEGIN {printf \"%c\", 10}" > test.txt
>
> This is not the case.
>
> Instead of the expected result it procudes
> a two-character file consisting of the characters 0D (CR) and 0A (LF).
>
> I'm using gawk unter W2k; the current
> version 3.1.6 was downloaded from
> http://gnuwin32.sourceforge.net/packages/gawk.htm
>
> Kind regards,
>
> Christoph Heidermanns
> Systemverantwortlicher SLX
> Software Developer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: failure in producing a single linefeed-character,
Aharon Robbins <=