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 libc/16915] New: nl_langinfo doesn't work with static linking


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.


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