Followup to: <[EMAIL PROTECTED]>
By author: Robert de Bath <[email protected]>
In newsgroup: linux.utf8
>
> On Wed, 18 Sep 2002, Maiorana, Jason wrote:
>
> >
> > >I have this simple little program, it uses locales (a bit) and even
> > >has simple gettext internationalisation, now I want to convert it so
> > >that it'll work on a completely UTF-8 locale _or_ a ISO8859-* locale
> > >(as it does now) or even an ISO8859-* interface on a UTF-8 system.
> >
> > If you dont want to worry about it too much, just use the mb functions
> > and let the locale control what they do:
> >
> > mblen instead of strlen
> > strcoll instead of strcmp
> > etc
>
> NB: mblen and mbrlen are not the same as strlen, they're kindof replacments
> for strptr++
>
> But the mb* strings are all for wide characters, "Mr. Lazy" knows about
> wide characters and thinks they're a pain, especially for already existing
> code.
>
mb = multibyte, w = wide.
-hpa
--
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <[EMAIL PROTECTED]>
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/