Module Name: src Committed By: joerg Date: Sat Jun 8 21:35:18 UTC 2024
Modified Files: src/lib/libc/locale: global_locale.c setlocale.c setlocale_local.h src/lib/libc/string: Makefile.inc strerror_r.c Log Message: Redo l10n support in the strerror family. Instead of opening the message catelog whenever strerror is called, keep track of the translations in the locale cache. For the C locale, the builtin sys_errlist is used directly. Other locales will open the catalog file on the first strerror call and build a translation table, so that further calls in this locale can just use an array lookup. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/libc/locale/global_locale.c cvs rdiff -u -r1.65 -r1.66 src/lib/libc/locale/setlocale.c cvs rdiff -u -r1.17 -r1.18 src/lib/libc/locale/setlocale_local.h cvs rdiff -u -r1.89 -r1.90 src/lib/libc/string/Makefile.inc cvs rdiff -u -r1.5 -r1.6 src/lib/libc/string/strerror_r.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.