Stefan Krah <stefan-use...@bytereef.org> added the comment: Yes, it's a bug. This works:
#include <stdio.h> #include <locale.h> int main(void) { char *s; 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; } But when I change the first setlocale call to "tr_TR", the result of the last call is NULL. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1813> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com