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 localedata/10497] New: Add YESSTR and NOSTR for en_US and POSIX locales


YESSTR and NOSTR selector to nl_langinfo don't have locale data for POSIX and
en_US (and possibly others, these are just the two that happen to be important
for me).  Many locales do have these strings, which seems to indicate that it's
just missing data rather than the feature not being supported.  I'll attach a
patch that adds these strings.

Reproducer:

$ cat y.c
#define _GNU_SOURCE
#include <locale.h>
#include <langinfo.h>
#include <stdio.h>

int main (void) {
  setlocale (LC_ALL, "");
  printf ("|%s|%s|\n", nl_langinfo (YESEXPR), nl_langinfo (YESSTR));
}

$ gcc y.c -o y
$ LANG=C ./y
|^[yY]||
$ LANG=en_US ./y
|^[yY].*||

-- 
           Summary: Add YESSTR and NOSTR for en_US and POSIX locales
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: pmachata at redhat dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10497

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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