mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.
This commit is contained in:
parent
b978d18fec
commit
8d9c2e33e1
1 changed files with 2 additions and 0 deletions
|
@ -327,9 +327,11 @@ init_locale()
|
|||
PyDict_SetItemString(d,"LC_MONETARY",x);
|
||||
Py_XDECREF(x);
|
||||
|
||||
#ifdef LC_MESSAGES
|
||||
x=PyInt_FromLong(LC_MESSAGES);
|
||||
PyDict_SetItemString(d,"LC_MESSAGES",x);
|
||||
Py_XDECREF(x);
|
||||
#endif /* LC_MESSAGES */
|
||||
|
||||
x=PyInt_FromLong(LC_NUMERIC);
|
||||
PyDict_SetItemString(d,"LC_NUMERIC",x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue