[lkml]   [1998]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: unicode (char as abstract data type)
    Alex Belits <> writes:

    > The problem is, for handling the data in applications UTF-8 is the very
    > worst format ever invented by a human.

    You will not handled UTF-8 internally.

    UTF-8 is normally meant to be the external representation of UCS2 or
    UCS4. Once you load a text you use iconv() or mbsrtowcs() function to
    convert to UCS4 which then can be used internally just like 8bit
    strings. All the functions are in place. In glibc 2.2 there will
    finaly be the possibility to use wide-char streams so that you would
    not even have to to the conversion yourself. Simply use fgetws or
    whatever you want to use and it'll work.

    -- Uli
    ---------------. drepper at ,-. 1325 Chesapeake Terrace
    Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
    Cygnus Solutions `--' drepper at `------------------------

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to

     \ /
      Last update: 2005-03-22 13:42    [W:0.018 / U:11.572 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site