Re: (Informational only: UTF-8 BOM and the real life)

From: Doug Ewell <>
Date: Sat, 28 Jul 2012 12:17:48 -0600

Eli Zaretskii wrote:

>> Almost nobody in the MS world uses the ^Z convention on purpose any
>> more; many don't even know about it.
> They might not use or even know this, but the C library does. And
> since the default open mode for ANSI C functions like fopen and
> Posix-like functions like _open is text, failure to open a binary file
> with O_BINARY resp. "rb" will cause the read operation to stop on the
> first byte whose value is 26.
> IOW, you don't need to know about this to be bitten by it.

I wonder which bite would be more painful: having the read operation
stop on the first 26, or having every 10 replaced by 13 10.

This still has nothing to do with U+FEFF.

Doug Ewell | Thornton, Colorado, USA | @DougEwell ­ 
Received on Sat Jul 28 2012 - 13:20:06 CDT

This archive was generated by hypermail 2.2.0 : Sat Jul 28 2012 - 13:20:07 CDT