summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-02 06:50:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-02 06:50:06 (GMT)
commit1399a01b903a6cdf2ecd9d8e479197d94b8b721c (patch)
tree81fd621a6d001bc7cff03cd7ffaae3194639ee4e /Python
parent4b9df0d33ba5f35e7c8b15cb9298b7706b1a9bdc (diff)
parentf41f8f99744230beb78efca71033a288107e3547 (diff)
downloadcpython-1399a01b903a6cdf2ecd9d8e479197d94b8b721c.zip
cpython-1399a01b903a6cdf2ecd9d8e479197d94b8b721c.tar.gz
cpython-1399a01b903a6cdf2ecd9d8e479197d94b8b721c.tar.bz2
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.
Diffstat (limited to 'Python')
-rw-r--r--Python/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 17e3bcc..1172c59 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -491,7 +491,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P
/* Only ever seen this in out-of-mem
situations */
s_buf = NULL;
- message = PyUnicode_FromFormat("Windows Error 0x%X", i);
+ message = PyUnicode_FromFormat("Windows Error 0x%x", i);
} else {
/* remove trailing cr/lf and dots */
while (len > 0 && (s_buf[len-1] <= L' ' || s_buf[len-1] == L'.'))
@@ -600,7 +600,7 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilenameObjects(
NULL); /* no args */
if (len==0) {
/* Only seen this in out of mem situations */
- message = PyUnicode_FromFormat("Windows Error 0x%X", err);
+ message = PyUnicode_FromFormat("Windows Error 0x%x", err);
s_buf = NULL;
} else {
/* remove trailing cr/lf and dots */