Re: trouble with NGPT + Linux 2.5.40 + glibc 2.2.93
"Dr. Uwe Girlich" <[email protected]>
| Newsgroups | gmane.linux.ngpt.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello!
Some hints to clarify my findings:
In old (up to 2.2.5) GLIBC versions, there is also the code
decimal = _NL_CURRENT (LC_NUMERIC, DECIMAL_POINT);
but with the understandable definition
#define _NL_CURRENT(category, item) \
(_nl_current_##category->values[_NL_ITEM_INDEX (item)].string)
and _nl_current_LC_NUMERIC is just a simple variable. So in old GLIBC
libraries, locales were not thread specific.
In the new GLIBC (2.2.93 of RH 8.0 and also the official 2.3) they use the
macro _NL_CURRENT_LOCALE which calls the macro __libc_tsd_get, which does the
__libc_internal_tsd_get check and then the libc_internal_tsd_get() call.
Bye, Uwe
--
Dr. Uwe Girlich email: [email protected]
Philosys Software GmbH www: www.philosys.de
Edisonstrasse 6 phone: +49 89 321407-44
D-85716 Unterschleissheim fax: +49 89 321407-12