[Python-Dev] [Python-checkins] cpython (3.2): Skip test_getsetlocale_issue1813() on Fedora due to setlocale() bug.
Stefan Krah
stefan at bytereef.org
Tue Aug 2 12:12:37 CEST 2011
Stefan Krah <stefan at bytereef.org> wrote:
> Fedora's glibc has an additional issue with the Turkish 'I' that can
> be reproduced by the simple C program in:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=726536
OK, this runs successfully on Ubuntu Lucid and FreeBSD (if you change
the first tr_TR to tr_TR.UTF-8).
But it fails on Debian lenny, as does test_getsetlocale_issue1813().
I suspect many buildbots are green because they don't have tr_TR and
tr_TR.iso8859-9 installed.
Synopsis for the people who don't want to wade through the bug reports:
If this is a valid C program ...
#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, NULL));
s = setlocale(LC_CTYPE, "tr_TR.ISO8859-9");
printf("%s\n", s ? s : "null");
return 0;
}
..., several systems (Fedora 14, Debian lenny) have a glibc bug that
is exposed by test_getsetlocale_issue1813(). People usually don't
see this because tr_TR and tr_TR.iso8859-9 aren't installed.
Stefan Krah
More information about the Python-Dev
mailing list