On Wed, 18 Sep 2002 09:05:28 +0100 (BST)
Robert de Bath <[email protected]> wrote:

> Hi, I'm Mr Lazy,
> 
> 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.
> 
> You'll notice, upto now 'I' haven't been near wide characters and really
> I've no liking for re-writing this program using wide characters so I
> expect to be using UTF-8 internally in the program (only if the locale
> is UTF-8 ?) and replacing normal C _byte_ string functions with utf-8
> character or screen cell counting equlivents when needed. Further I'd
> like a nice efficient (lazy!) way of converting to ISO-8859-* at _some_
> of the boundries of the system. I'm not interested in JIS*, KSC5636 or
> GB2312 but would prefer something that supports them invisibly.
> 
> Some things I've spotted:
>    libunicode -- Nope, uses UTF-16 (****, I _hate_ that vicious halfbreed!)
>    libutf-8   -- Again uses wide chars, at least they're UCS-4
>                  (Hmm, there appears to be more than one libutf ...)
>    libiconv   -- A little complex and a pig to drive, Mr lazy can't be
>                  bothered to use it.
> 
> So, given this, I'm looking for libraries. Probably an unlimited string

Perhaps encdec. The interface is a little nicer for common situations.

  http://freshmeat.net/projects/encdec/


> package (so I don't have to worry about buffer overflows either) an
> error oblivious character set converter (personally I'd just wrap iconv)
> and a character screen display package that understands these strings
> (eg. perhaps, does UTF-8 <-> locale conversion).
> 
> What do you recommend?
> 
> -- 
> Rob.                          (Robert de Bath <robert$ @ debath.co.uk>)
>                                        <http://www.cix.co.uk/~mayday>
> 
> --
> Linux-UTF8:   i18n of Linux on all levels
> Archive:      http://mail.nl.linux.org/linux-utf8/
> 
> 


-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and more importantly to tasks that have not
yet been conceived. 
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to