Pablo Saratxaga wrote on 2001-12-31 12:36 UTC: > > http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c > > http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.h > > > > Suggestions for improvement welcome. > > - "ISO-8859-11" does not exist. The proper name is "TIS-620".
Fixed. BTW: ISO 8859-11 has now been published. > - language code "po" should be "pl" instead. Fixed. > - for "ro", there should be a compile option to return iso-8859-2 instead; > a sistem without nl_langinfo is unlikely to have support for iso-8859-16 > imho. Fixed. [EMAIL PROTECTED] wrote on 2001-12-31 13:57 UTC: > It may work for FreeBSD where nl_langinfo appeared together > with nl_langinfo(CODESET) but I doubt it will stick well with NetBSD > where nl_langinfo() was without CODESET AFAIK. The autoconf test for the availability of nl_langinfo(CODESET) on http://www.cl.cam.ac.uk/~mgk25/unicode.html#activate will test only whether nl_langinfo with CODESET support is available. If you have nl_langinfo without CODESET, you'll have to rename my emulator into nl_langinfo_emu and add an #ifdef at the place where you call nl_langinfo. No big deal. But I personally consider operating system releases with nl_langinfo but without CODESET simply unacceptable and not worth supporting. This should IMHO rather be fixed by the OS developer, not in every single application. Can you confirm that the current version of NetBSD still has a function nl_langinfo but without support for CODESET? > BTW it lacks koi8- tests. Fixed. (The "ru" and "uk" rules should have covered that as well in practice.) Updated version again on http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c Markus -- Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/> -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
