mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Use de_DE in example, change message for unknown locale. Fixes #797447.
Will backport to 2.3.
This commit is contained in:
parent
2e31ce2514
commit
25f90d5c5d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/***********************************************************
|
||||
Copyright (C) 1997, 2002 Martin von Loewis
|
||||
Copyright (C) 1997, 2002, 2003 Martin von Loewis
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
|
|
@ -177,7 +177,7 @@ PyLocale_setlocale(PyObject* self, PyObject* args)
|
|||
result = setlocale(category, locale);
|
||||
if (!result) {
|
||||
/* operation failed, no setting was changed */
|
||||
PyErr_SetString(Error, "locale setting not supported");
|
||||
PyErr_SetString(Error, "unsupported locale setting");
|
||||
return NULL;
|
||||
}
|
||||
result_object = PyString_FromString(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue