diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-02 09:47:27 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-02 09:47:27 +0300 |
commit | eb4bdf87ec1f263c92127bef4fe101111bf91b93 (patch) | |
tree | ff6cab5110366e224fb36098044cb71b84981075 /Python/errors.c | |
parent | 111b4f89297ee9be432c31fa9b50b1d16e8df9f1 (diff) | |
download | cpython-eb4bdf87ec1f263c92127bef4fe101111bf91b93.tar.gz |
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c index a980481110..b0ad9aa58b 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 */ |