[New-bugs-announce] [issue4807] wrong wsprintf usage

Ulrich Eckhardt report at bugs.python.org
Fri Jan 2 14:08:03 CET 2009


New submission from Ulrich Eckhardt <eckhardt at satorlaser.com>:

Note up front: there is a win32 function wsprintf() and an ISO C
function swprintf(), these are different things in case you wonder.

In _winreg.c, there are two functions that use wsprintf on a char
buffer, while the function takes a TCHAR buffer instead. This leads to
compile warning and runtime errors when _UNICODE is defined, like e.g.
under MS Windows CE. The attached patch replaces the two calls to that
function with calls to fprintf() and PyString_FromFormat().

----------
components: Windows
files: python-2.7-no-wsprint.0.patch
keywords: patch
messages: 78790
nosy: eckhardt
severity: normal
status: open
title: wrong wsprintf usage
type: compile error
versions: Python 2.7
Added file: http://bugs.python.org/file12538/python-2.7-no-wsprint.0.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4807>
_______________________________________


More information about the New-bugs-announce mailing list