Robert de Bath writes:

> "Mr. Lazy" knows about wide characters and thinks they're a pain,
> especially for already existing code.

Sure. And furthermore some of them are unreliable: when you use
wprintf you don't know whether it failed because the disk was full or
if there was a conversion error or because the stdio was byte
oriented.

> iconv() is _fairly_ easy to use, the problem isn't that's it's difficult
> just that there's a lot you have to remember to do for a function that
> appears (at first) to have a simple job.

Have a look at the libunistr part of
http://www.haible.de/bruno/gnu/libunistring-0.0.tar.gz
Its <unistr.h> file declares simple functions for simple tasks - even
though under the hood many of them are based on iconv.

> I don't think there's any support for 'character' counting as
> opposed to 'display cell' counting.

In libunistring: u8_strlen vs. u8_strwidth.

Bruno

______________________________________________________________________________
WEB.DE MyPage - Ohne Computerkenntnisse in nur 5 Minuten online! Alles
inklusive! Kinderleicht!  http://www.das.ist.aber.ne.lustige.sache.ms/

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to