This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Arfrever, BreamoreBoy, arnimar, djc, gkcn, jafo, jwilk, lemburg, pitrou, python-dev, skrah, vstinner
Date 2011-07-26.23:34:59
SpamBayes Score 1.566369e-05
Marked as misclassified No
Message-id <>
Yes, it's a bug. This works:

#include <stdio.h>
#include <locale.h>
    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.
Date User Action Args
2011-07-26 23:35:00skrahsetrecipients: + skrah, lemburg, jafo, pitrou, vstinner, arnimar, jwilk, djc, Arfrever, BreamoreBoy, python-dev, gkcn
2011-07-26 23:35:00skrahsetmessageid: <>
2011-07-26 23:34:59skrahlinkissue1813 messages
2011-07-26 23:34:59skrahcreate