This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
[Bug localedata/10497] New: Add YESSTR and NOSTR for en_US and POSIX locales
- From: "pmachata at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: libc-locales at sources dot redhat dot com
- Date: 7 Aug 2009 12:49:04 -0000
- Subject: [Bug localedata/10497] New: Add YESSTR and NOSTR for en_US and POSIX locales
- Reply-to: sourceware-bugzilla at sourceware dot org
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 the assignee for the bug, or are watching the assignee.