Re: UTF-8 'BOM'

From: Marcin 'Qrczak' Kowalczyk (qrczak@knm.org.pl)
Date: Thu Jan 20 2005 - 17:18:15 CST

  • Next message: Kenneth Whistler: "BOM Bogle Bombination"

    Lars Kristan <lars.kristan@hermes.si> writes:

    > * On UNIX, fopen is always binary, text mode is rare and even then
    > very close to binary.
    > * On UNIX, text mode often doesn't apply, so UNIX is by default in
    > binary mode.

    Formally, the text/binary mode distinction for stdio is specified in
    the C standard, with the default being the text mode.

    For any POSIX-conforming C implementation the text and binary modes
    are identical though.

    When C was born together with Unix, it did not have the distinction
    of course. I don't know when it got added.

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


    This archive was generated by hypermail 2.1.5 : Thu Jan 20 2005 - 17:21:49 CST