summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-02 06:47:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-02 06:47:27 (GMT)
commitf41f8f99744230beb78efca71033a288107e3547 (patch)
tree62fa8623dbe384de9d98319409a697f66a744c13 /Python
parenta7eaf56a6d1de20a7a36fde03b3512fa5f9f395d (diff)
downloadcpython-f41f8f99744230beb78efca71033a288107e3547.zip
cpython-f41f8f99744230beb78efca71033a288107e3547.tar.gz
cpython-f41f8f99744230beb78efca71033a288107e3547.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 a980481..b0ad9aa 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 */