[issue4051] use of TCHAR under win32

2008-10-12 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I couldn't found where python C-code use so called "TCHAR meaning" and > the first sentence from comment in Ulrich patch looks irrelevant to the > issue. I was confused by Ulrich's terminology at first, also (claiming that Python doesn't u

[issue4051] use of TCHAR under win32

2008-10-10 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: For the protocol I attach part for PythonCE-2.5-20061219.patch. Both patches address UNICODE name clash in Modules/cPickle.c. For windows programs UNICODE is more commonly used define and may be python C-code only has to avoid issues like this

[issue4051] use of TCHAR under win32

2008-10-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > What about to substitute UNICODE macro as example with RAWUNICODE in the > source ? That would work as well. As it stands, the macro names are equivalent to the ones in pickle.py, which is a useful property to have. So I'm in favor of the

[issue4051] use of TCHAR under win32

2008-10-07 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: What about to substitute UNICODE macro as example with RAWUNICODE in the source ? -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]>

[issue4051] use of TCHAR under win32

2008-10-06 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Please create a separate tracker item per individual change (or per group by enourmously similar changes). Each change will be reviewed separately, and will get accepted or rejected separately. This specific patch (Python-unicode-redefine-wa

[issue4051] use of TCHAR under win32

2008-10-06 Thread Ulrich Eckhardt
Ulrich Eckhardt <[EMAIL PROTECTED]> added the comment: Add a patch that fixes a warning. -- keywords: +patch Added file: http://bugs.python.org/file11708/Python-unicode-redefine-warning.0.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4051] use of TCHAR under win32

2008-10-06 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt <[EMAIL PROTECTED]>: In several places, Python is using TCHAR-based win32 APIs which has several consequences: 1. The actually used function depends on the _UNICODE macro, while the using code often assumes that this macro is not defined. That means that not