May 3, 2013
4:34 a.m.
On 05/01/13 16:51, James Cloos wrote:
zic.c uses isascii(3) and isspace(3), so it is libc and locale dependent, although in practice the use of isascii(3) should minimize that dependence. Maybe even eliminate it.
Normally, zic doesn't call setlocale, so it's running in the C locale. There is a compile-time option HAVE_GETTEXT that enables setlocale but it's not set automatically. The intent of HAVE_GETTEXT was to allow zic's diagnostics to be internationalized; it was not to change the input language of zic. So perhaps the HAVE_GETTEXT stuff should be removed; or if it's kept, the use of ctype.h primitives should be removed (which'd be more work....).