Hi Eric,
Here is what we are trying to do:
- do you want that all places where WCHAR is used (meaning utf16) is replaced by utf32 encoding? Yes, all usage would be utf-32 - do you want applications compiled in current WCHAR=2 bytes (including native windows applications) and applications with your WCHAR=4 bytes run in the same wine instance? This would be WCHAR=4 bytes only. Native Windows Applications do not need to be supported. - cross compiling or simply compiling ? No cross-compilation. Currently planning to compile/build under Linux only. and perhaps to start with, why is current utf16 encoding not sufficient? We are trying to build Windows application using Wine Lib as native application (i.e. winelib https://wiki.winehq.org/Winelib / https://wiki.winehq.org/Winelib_User%27s_Guide rather than wine to run Windows binaries). So that we can use other glibc functionality as well that use and expect native wchar_t sizes.
regards, Mahin
From: Eric Pouech eric.pouech@orange.fr Sent: Tuesday, May 3, 2022 5:24 PM To: Mahin Pandya mahin.pandya@actian.com; wine-devel@winehq.org Subject: Re: Wine Source build on native wchar_t 4 bytes
Le 03/05/2022 à 17:09, Mahin Pandya a écrit : Hello All,
We are trying to build Wine Source on Linux with native wchar_t size 4 bytes (instead of 2 bytes), is there any way it can be done?
not simply I'm afraid
could you clarify your intend, ie:
- do you want that all places where WCHAR is used (meaning utf16) is replaced by utf32 encoding? Yes, all usage would be utf-32
- do you want applications compiled in current WCHAR=2 bytes (including native windows applications) and applications with your WCHAR=4 bytes run in the same wine instance? This would be WCHAR=4 bytes only. Native Windows Applications do not need to be supported.
- cross compiling or simply compiling ?
No cross-compilation. Currently planning to compile/build under Linux only.
and perhaps to start with, why is current utf16 encoding not sufficient? We are trying to build Windows application using Wine Lib as native application (i.e. winelib https://wiki.winehq.org/Winelib / https://wiki.winehq.org/Winelib_User%27s_Guide rather than wine to run Windows binaries). So that we can use other glibc functionality as well that use and expect native wchar_t sizes.
A+