Message141196
| 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 | <1311723300.17.0.725248729896.issue1813@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |