summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-09-03 04:50:13 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-09-03 04:50:13 (GMT)
commit25f90d5c5dc70931f750258d5e70e6a916cdf23a (patch)
tree32e59bcafe977b5b4feed876a5f6622a9d4262ba /Modules/_localemodule.c
parent2e31ce25140e6ad74f670e8c5021e0bc1bc3ac0f (diff)
downloadcpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.zip
cpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.tar.gz
cpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.tar.bz2
Use de_DE in example, change message for unknown locale. Fixes #797447.
Will backport to 2.3.
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 263e881..980302d 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -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);