lkml.org 
[lkml]   [1998]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: unicode (char as abstract data type)
From
Date
Alex Belits <abelits@phobos.illtel.denver.co.us> 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 gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2011 Jasper Spaans