[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wcwidth(), glibc stuff etc.



Ulrich Drepper <drepper@xxxxxxxxxx> wrote:

: Markus Kuhn <Markus.Kuhn@xxxxxxxxxxxx> writes:
: 
: > Attached is my public domain implementation of the wcwidth() and
: > wcswidth() functions. I hope you will find it useful for inclusion into
: > glibc,
: 
: Why?  I have a correct implementation in glibc.  It is not based on
: some obscure hardcoded algororithm but instead allows locale-dependent
: information.  Hardcoding is really unsuitable since not all character
: sets agree with UCS about the width.

I appreciate Markus' code very much as I will be using it in my editor mined.
I intend it to work on all kinds of system, including legacy systems, 
which are - with respect to UTF-8 - almost all systems nowadays.
That's why I can't depend on any system integrated UTF-8 support, neither 
wcchar_t, width determination, nor locale(), UTF-8 curses or anything.
I think this is a recommendable approach for anyone who wants to create 
software that just runs - standalone.

Kind regards,
Thomas Wolff
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/