This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16915] nl_langinfo doesn't work with static linking
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 04 Jul 2018 19:25:16 +0000
- Subject: [Bug libc/16915] nl_langinfo doesn't work with static linking
- Auto-submitted: auto-generated
- References: <bug-16915-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16915
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 34fdb893e0cec55bdfc83ce56ab29b8f5eeaef9d (commit)
from f2873d2da0ac9802e0b570e8e0b9e7e04a82bf55 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=34fdb893e0cec55bdfc83ce56ab29b8f5eeaef9d
commit 34fdb893e0cec55bdfc83ce56ab29b8f5eeaef9d
Author: Carlos O'Donell <carlos@redhat.com>
Date: Mon May 14 08:25:46 2018 -0400
locale: XFAIL newlocale usage in static binary (Bug 23164)
There is a glibc optimization which allows for locale categories
to be removed during static compilation. There have been various
bugs for this support over the years, with bug 16915 being the
most recent. The solution there was to emit a reference to all the
categories to avoid any being removed. This fix, although it's in
the generic __nl_langinfo_l function, doesn't appear to be enough
to fix the case for a statically linked program that uses newlocale
and nl_langinfo_l. This commit doesn't fix the problem, but it does
add a XFAIL'd test case such that a fix can be applied against this
and the XFAIL removed. It's not entirely clear that the problem is
the same as that which was seen in bug 16915.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 29 +++++++++++++++
localedata/Makefile | 35 +++++++++++++++---
localedata/tst-langinfo-newlocale-static.c | 1 +
localedata/tst-langinfo-newlocale.c | 55 ++++++++++++++++++++++++++++
localedata/tst-langinfo-setlocale-static.c | 1 +
localedata/tst-langinfo-setlocale.c | 54 +++++++++++++++++++++++++++
localedata/tst-langinfo.c | 24 +-----------
localedata/tst-langinfo.sh | 4 ++
8 files changed, 176 insertions(+), 27 deletions(-)
create mode 100644 localedata/tst-langinfo-newlocale-static.c
create mode 100644 localedata/tst-langinfo-newlocale.c
create mode 100644 localedata/tst-langinfo-setlocale-static.c
create mode 100644 localedata/tst-langinfo-setlocale.c
--
You are receiving this mail because:
You are on the CC list for the bug.