This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年03月18日 14:00 by benjamin.peterson, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg63913 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月18日 14:00 | |
Compiling Python with --enable-unicode=ucs4 yields some compiler warnings for unicodeobject.c: In file included from Objects/unicodeobject.c:7807: Objects/stringlib/string_format.h: In function 'do_conversion': Objects/stringlib/string_format.h:745: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' In file included from Objects/unicodeobject.c:7807: Objects/stringlib/string_format.h: In function 'do_conversion': Objects/stringlib/string_format.h:745: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' Objects/unicodeobject.c: In function 'PyUnicodeUCS4_Format': Objects/unicodeobject.c:8603: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' Objects/unicodeobject.c: In function 'PyUnicodeUCS4_Format': Objects/unicodeobject.c:8603: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' |
|||
| msg63914 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2008年03月18日 14:27 | |
What operating system/compiler? Both branches? What precise revisions? |
|||
| msg63916 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月18日 14:39 | |
This is MacOS 10.4, Apple gcc 4.0.1, and revision 61518. |
|||
| msg63918 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月18日 14:48 | |
There are similar warnings in formater_unicode.c: In file included from Python/formatter_unicode.c:13: Python/../Objects/stringlib/formatter.h: In function 'unicode__format__': Python/../Objects/stringlib/formatter.h:789: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' In file included from Python/formatter_unicode.c:13: Python/../Objects/stringlib/formatter.h: In function 'unicode__format__': Python/../Objects/stringlib/formatter.h:789: warning: format '%c' expects type 'int', but argument 3 has type 'Py_UNICODE' |
|||
| msg64254 - (view) | Author: Christian Heimes (christian.heimes) * (Python committer) | Date: 2008年03月21日 18:32 | |
I'll check it out later. I haven't been testing UCS4 builds for more than a month. |
|||
| msg64655 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月28日 22:51 | |
This is because in UCS, Py_UNICODE is an unsigned long. In calls to PyErr_Format, the format specifier %c (int, the UCS2 Py_UNICODE) is given, so the compiler gives a warning. |
|||
| msg65060 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2008年04月07日 03:08 | |
This is now fixed in r62199 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:32 | admin | set | github: 46641 |
| 2008年04月07日 03:08:52 | loewis | set | status: open -> closed resolution: fixed messages: + msg65060 |
| 2008年03月28日 22:51:51 | benjamin.peterson | set | messages:
+ msg64655 versions: - Python 3.0 |
| 2008年03月21日 18:32:13 | christian.heimes | set | priority: high assignee: christian.heimes messages: + msg64254 keywords: + easy nosy: + christian.heimes |
| 2008年03月18日 14:48:51 | benjamin.peterson | set | messages: + msg63918 |
| 2008年03月18日 14:39:06 | benjamin.peterson | set | messages: + msg63916 |
| 2008年03月18日 14:27:13 | loewis | set | nosy:
+ loewis messages: + msg63914 |
| 2008年03月18日 14:00:11 | benjamin.peterson | create | |