Bug 737778
Summary: | setlocale() fails if LC_CTYPE is set to Turkish locale | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Per Nystrom <centaur> |
Component: | glibc | Assignee: | Andreas Schwab <schwab> |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1 | CC: | aalam, dennis, eng-i18n-bugs, fweimer, jakub, mfranc, schwab, stefan-usenet |
Target Milestone: | rc | Keywords: | i18n |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.12-1.41.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 726536 | Environment: | |
Last Closed: | 2011-12-06 17:48:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 743047 |
Description
Per Nystrom
2011-09-13 04:41:55 UTC
This is also present in RHEL6.1 [per@rhel6u1 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 (Santiago) [per@rhel6u1 ~]$ rpm -q glibc glibc-2.12-1.25.el6_1.3.x86_64 [per@rhel6u1 ~]$ cat locale_test.c #include <stdio.h> #include <locale.h> int main(void) { char *s; printf("%s\n", setlocale(LC_CTYPE, "tr_TR")); // printf("%s\n", setlocale(LC_CTYPE, "tr_TR.ISO8859-9")); printf("%s\n", setlocale(LC_CTYPE, NULL)); s = setlocale(LC_CTYPE, "tr_TR.ISO8859-9"); printf("%s\n", s ? s : "null"); return 0; } [per@rhel6u1 ~]$ gcc locale_test.c [per@rhel6u1 ~]$ ./a.out tr_TR tr_TR null Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1526.html |