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

Re: UTF-8 application



Edmund GRIMLEY EVANS writes:

> Most libraries seem to fail this test, but recent versions of Bruno's
> libutf8 pass.

Current glibc-2.2 snapshots also pass this test.

> #include <stddef.h>
> #include <stdlib.h>
> #ifdef HAVE_WCHAR_H
> #include <wchar.h>
> #endif
> #include <locale.h>

Please add  #define _XOPEN_SOURCE 1  before all this. It's needed for
<wchar.h> to declare the 'wcwidth' function.

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