Extension modules
-----------------
+- Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).
+
- Bug #797447: Correct confusing error message for unsupported locales.
- Patch #798534: fixed memory leak in os.popen().
/* Check whether this is a supported constant. GNU libc sometimes
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)
return PyString_FromString(nl_langinfo(item));