Message141196
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. |
|
Date |
User |
Action |
Args |
2011-07-26 23:35:00 | skrah | set | recipients:
+ skrah, lemburg, jafo, pitrou, vstinner, arnimar, jwilk, djc, Arfrever, BreamoreBoy, python-dev, gkcn |
2011-07-26 23:35:00 | skrah | set | messageid: <1311723300.17.0.725248729896.issue1813@psf.upfronthosting.co.za> |
2011-07-26 23:34:59 | skrah | link | issue1813 messages |
2011-07-26 23:34:59 | skrah | create | |
|