This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug locale/23164] LC_MONETARY data incorrect with static linking


https://sourceware.org/bugzilla/show_bug.cgi?id=23164

--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Carlos O'Donell from comment #1)
> It looks like the static build is still optimizing out what it considers
> unused categories. So the fix is incomplete.

So when I add CURRENCY_SYMBOL as input data to the tst-langinfo-static test, it
passes:

LC_ALL=en_US.UTF-8 nl_langinfo(CURRENCY_SYMBOL) = "$", OK

Which means nl_langinfo is working as expected for static applications with
LC_MONETARY and CURRENCY_SYMBOL.

When I extend coverage to newlocale/nl_langinfo_l it fails:

FAIL: localedata/tst-langinfo-static

grep 'FAILED' localedata/tst-langinfo-static.out 
LC_ALL=de_DE.ISO-8859-1 nl_langinfo(ABDAY_1)FAILED (expected: So)
LC_ALL=fr_FR.ISO-8859-1 nl_langinfo(ABDAY_1)FAILED (expected: dim.)

Which it should not, so there is something wrong there.

I would need a whole new test for newlocale/nl_langinfo_l which doesn't exist
to be able to verify the static linkage issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]