Message117796
Daniel Stutzbach wrote:
>
> Daniel Stutzbach <daniel@stutzbachenterprises.com> added the comment:
>
>> You can tweak the Windows pyconfig.h to use UCS4, AFAIK, if you want to
>> test drive this case.
>
> I seem to recall seeing some other code that assumed Windows implied UCS2. Proceed with caution. ;-)
Probably, yes. I've never tried it myself.
>> But it's probably easier to configure with "gcc -fshort-wchar" on
>> Linux :-)
>
> libc will still be using sizeof(wchar_t) == 4, though. Won't that cause Bad Things to happen when calling libc wide-character functions?
Sure, but this is just about testing an interface, not running
applications :-)
Here's what the GCC man-page has to say:
-fshort-wchar
Override the underlying type for wchar_t to be short unsigned int instead
of the default for the target. This option is useful for building
programs to run under WINE.
Warning: the -fshort-wchar switch causes GCC to generate code that is not
binary compatible with code generated without that switch. Use it to
conform to a non-default application binary interface. |
|
Date |
User |
Action |
Args |
2010-10-01 13:06:05 | lemburg | set | recipients:
+ lemburg, theller, vstinner, stutzbach, ezio.melotti |
2010-10-01 13:06:02 | lemburg | link | issue8670 messages |
2010-10-01 13:06:01 | lemburg | create | |
|