PyErr_SetString(Error, "unsupported locale setting");
return NULL;
}
- result_object = PyUnicode_DecodeLocale(result, 0);
+ result_object = PyUnicode_DecodeLocale(result, NULL);
if (!result_object)
return NULL;
} else {
PyErr_SetString(Error, "locale query failed");
return NULL;
}
- result_object = PyUnicode_DecodeLocale(result, 0);
+ result_object = PyUnicode_DecodeLocale(result, NULL);
}
return result_object;
}
involved herein */
#define RESULT_STRING(s)\
- x = PyUnicode_DecodeLocale(l->s, 0); \
+ x = PyUnicode_DecodeLocale(l->s, NULL); \
if (!x) goto failed;\
PyDict_SetItemString(result, #s, x);\
Py_XDECREF(x)
instead of an empty string for nl_langinfo(ERA). */
const char *result = nl_langinfo(item);
result = result != NULL ? result : "";
- return PyUnicode_DecodeLocale(result, 0);
+ return PyUnicode_DecodeLocale(result, NULL);
}
PyErr_SetString(PyExc_ValueError, "unsupported langinfo constant");
return NULL;
char *in;
if (!PyArg_ParseTuple(args, "s", &in))
return 0;
- return PyUnicode_DecodeLocale(gettext(in), 0);
+ return PyUnicode_DecodeLocale(gettext(in), NULL);
}
PyDoc_STRVAR(dgettext__doc__,
char *domain, *in;
if (!PyArg_ParseTuple(args, "zs", &domain, &in))
return 0;
- return PyUnicode_DecodeLocale(dgettext(domain, in), 0);
+ return PyUnicode_DecodeLocale(dgettext(domain, in), NULL);
}
PyDoc_STRVAR(dcgettext__doc__,
int category;
if (!PyArg_ParseTuple(args, "zsi", &domain, &msgid, &category))
return 0;
- return PyUnicode_DecodeLocale(dcgettext(domain,msgid,category), 0);
+ return PyUnicode_DecodeLocale(dcgettext(domain,msgid,category), NULL);
}
PyDoc_STRVAR(textdomain__doc__,
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
}
- return PyUnicode_DecodeLocale(domain, 0);
+ return PyUnicode_DecodeLocale(domain, NULL);
}
PyDoc_STRVAR(bindtextdomain__doc__,
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
}
- result = PyUnicode_DecodeLocale(current_dirname, 0);
+ result = PyUnicode_DecodeLocale(current_dirname, NULL);
Py_XDECREF(dirname_bytes);
return result;
}
return NULL;
codeset = bind_textdomain_codeset(domain, codeset);
if (codeset)
- return PyUnicode_DecodeLocale(codeset, 0);
+ return PyUnicode_DecodeLocale(codeset, NULL);
Py_RETURN_NONE;
}
#endif