]> sourceware.org Git - glibc.git/commit
fix nl_langinfo with static linking (BZ #16915)
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 15 May 2014 22:06:54 +0000 (00:06 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 20 May 2014 16:43:14 +0000 (18:43 +0200)
commitae75a883f2eb312165d1e1f423cea320f3c92ef5
treef8090d0119513e8880d097e588e0b8ef7b393c93
parentde9d8f2098caeb19684710a3c0774f4fe38a5e2c
fix nl_langinfo with static linking (BZ #16915)

For static linking the locale code avoids linking code and data for
unused categories. However for nl_langinfo we know only at runtime which
categories are used, so direct reference to every nl_current_CATEGORY
symbol should be done.

This was broken by commit bc3e1c127392da88d0c8bf2ae728147982a3d1bc where
nl_langinfo_l and nl_langinfo have been merged and some code has been
lost in the process.

In order to detect locales issues with static linking, compile a version
of tst-langinfo with static linking.

Note: this is Debian bug#747103 reported by Raphael <raphael.astier@eliot-sa.com>
ChangeLog
NEWS
locale/nl_langinfo_l.c
localedata/Makefile
localedata/tst-langinfo-static.c [new file with mode: 0644]
localedata/tst-langinfo.sh
This page took 0.043842 seconds and 5 git commands to generate.