public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16915] New: nl_langinfo doesn't work with static linking
@ 2014-05-06 21:07 aurelien at aurel32 dot net
  2014-05-06 21:43 ` [Bug libc/16915] " aurelien at aurel32 dot net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2014-05-06 21:07 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16915
           Summary: nl_langinfo doesn't work with static linking
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: aurelien at aurel32 dot net
                CC: drepper.fsp at gmail dot com

When used in statically linked binaries, nl_langinfo() does not work for some
categories, as it can be seen with a small example like that:

#include <stdio.h>
#include <locale.h> 
#include <langinfo.h> 

int main(void)
{
  setlocale (LC_ALL, "fr_FR.UTF-8");
  printf("%s\n",nl_langinfo(DAY_2));
  return 0;
}

Such a code returns "Monday" instead of "lundi" when compiled dynamically.

A patch is available on
http://sourceware.org/ml/libc-alpha/2014-05/msg00134.html

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-12 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 21:07 [Bug libc/16915] New: nl_langinfo doesn't work with static linking aurelien at aurel32 dot net
2014-05-06 21:43 ` [Bug libc/16915] " aurelien at aurel32 dot net
2014-05-20 16:49 ` cvs-commit at gcc dot gnu.org
2014-05-20 16:50 ` aurelien at aurel32 dot net
2014-06-12 19:25 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).