[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] gpreconv on Windows fails with CRLF files
From: |
Anton Shepelev |
Subject: |
Re: [Groff] gpreconv on Windows fails with CRLF files |
Date: |
Tue, 7 Aug 2012 00:43:41 +0400 |
Keith Marshall:
> Actually, preconv opens its input stream in "bina-
> ry" mode, rather than in Window's special "text"
> mode. Thus, it does see the \r\n EOL sequence,
> which it then explicitly interprets as the line
> terminator, so explicitly emulating the behaviour
> which would have been default, had it been opened
> in "text" mode.
On my machine it does not behave as you describe.
It interprets only '\n' as the EOL sequence produc-
ing a file with '\r\r\n' for every line end. Natu-
rally, groff doesn't like it.
In other words, GNUWin32 preconv fails with Windows-
encoded files.
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments