Source-Changes archive

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

CVS commit: [netbsd-10] src/lib/libc



Module Name:    src
Committed By:   martin
Date:           Sun Oct 13 16:08:53 UTC 2024

Modified Files:
        src/lib/libc/locale [netbsd-10]: global_locale.c setlocale.c
            setlocale_local.h
        src/lib/libc/string [netbsd-10]: Makefile.inc strerror_r.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #971):

        lib/libc/locale/setlocale_local.h: revision 1.18
        lib/libc/string/strerror_r.c: revision 1.6
        lib/libc/locale/setlocale.c: revision 1.66
        lib/libc/string/Makefile.inc: revision 1.90
        lib/libc/locale/global_locale.c: revision 1.29

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.25 -r1.25.26.1 src/lib/libc/locale/global_locale.c
cvs rdiff -u -r1.65 -r1.65.14.1 src/lib/libc/locale/setlocale.c
cvs rdiff -u -r1.17 -r1.17.26.1 src/lib/libc/locale/setlocale_local.h
cvs rdiff -u -r1.85.6.1 -r1.85.6.2 src/lib/libc/string/Makefile.inc
cvs rdiff -u -r1.5 -r1.5.6.1 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.




Home | Main Index | Thread Index | Old Index