python/dist/src/Modules _localemodule.c, 2.41, 2.42
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1:/tmp/cvs-serv31045/Modules Modified Files: _localemodule.c Log Message: Patch #798145: Return correct information from nl_langinfo(RADIXCHAR). Will backport to 2.3. Index: _localemodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/_localemodule.c,v retrieving revision 2.41 retrieving revision 2.42 diff -C2 -d -r2.41 -r2.42 *** _localemodule.c 3 Sep 2003 04:50:13 -0000 2.41 --- _localemodule.c 4 Sep 2003 18:24:47 -0000 2.42 *************** *** 580,583 **** --- 580,595 ---- returns numeric values in the char* return value, which would crash PyString_FromString. */ + #ifdef RADIXCHAR + if (saved_numeric) { + if(item == RADIXCHAR) { + Py_INCREF(decimal_point); + return decimal_point; + } + if(item == THOUSEP) { + Py_INCREF(thousands_sep); + return thousands_sep; + } + } + #endif for (i = 0; langinfo_constants[i].name; i++) if (langinfo_constants[i].value == item)
participants (1)
-
loewis@users.sourceforge.net