Binary IO

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sat Apr 23 17:28:32 EDT 2005


David Menendez <zednenem at psualum.com> writes:

>> With regard to the last three points, byte I/O isn't just for binary
>> files. It's equally useful for "8-bit text" I/O, i.e. the historical
>> Unix (and ANSI C stdio) model, where and you just shuffle bytes
>> around without paying attention to the encoding.
>
> So, how does this work on an EBCDIC system where 0x0a is Start Manual
> Message and line feed is 0x25?

Unix doesn't use EBCDIC. Data in encodings not compatible with ASCII
must be converted because most programs can do anything with them.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Libraries mailing list