<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle21
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Eric, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is what we are trying to do:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- do you want that all places where WCHAR is used (meaning utf16) is replaced by utf32 encoding?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">Yes, all usage would be utf-32<o:p></o:p></span></p>
<p class="MsoNormal">- 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?<span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">This would be WCHAR=4 bytes only. Native Windows Applications do not need to be supported.<o:p></o:p></span></p>
<p class="MsoNormal">- cross compiling or simply compiling ?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">No cross-compilation. Currently planning to compile/build under Linux only.<o:p></o:p></span></p>
<p class="MsoNormal">and perhaps to start with, why is current utf16 encoding not sufficient?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">We are trying to build Windows application using Wine Lib as native application (i.e. winelib
<a href="https://wiki.winehq.org/Winelib"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">https://wiki.winehq.org/Winelib</span></a> /
<a href="https://wiki.winehq.org/Winelib_User%27s_Guide"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">https://wiki.winehq.org/Winelib_User%27s_Guide</span></a> 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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></p>
<p class="MsoNormal">regards,<o:p></o:p></p>
<p class="MsoNormal">Mahin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Eric Pouech <eric.pouech@orange.fr> <br>
<b>Sent:</b> Tuesday, May 3, 2022 5:24 PM<br>
<b>To:</b> Mahin Pandya <mahin.pandya@actian.com>; wine-devel@winehq.org<br>
<b>Subject:</b> Re: Wine Source build on native wchar_t 4 bytes<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Le 03/05/2022 à 17:09, Mahin Pandya a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello All,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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?<o:p></o:p></p>
</blockquote>
<p>not simply I'm afraid<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>could you clarify your intend, ie:<o:p></o:p></p>
<p>- do you want that all places where WCHAR is used (meaning utf16) is replaced by utf32 encoding?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">Yes, all usage would be utf-32</span><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%"><o:p></o:p></span></p>
<p>- 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?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">This would be WCHAR=4 bytes only. Native Windows Applications do not need to be supported.</span><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%"><o:p></o:p></span></p>
<p>- cross compiling or simply compiling ?<o:p></o:p></p>
<p><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">No cross-compilation. Currently planning to compile/build under Linux only.<o:p></o:p></span></p>
<p>and perhaps to start with, why is current utf16 encoding not sufficient?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">We are trying to build Windows application using Wine Lib as native application (i.e. winelib
<a href="https://wiki.winehq.org/Winelib"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">https://wiki.winehq.org/Winelib</span></a> /
<a href="https://wiki.winehq.org/Winelib_User%27s_Guide"><span style="color:#385723;mso-style-textfill-fill-color:#385723;mso-style-textfill-fill-alpha:100.0%">https://wiki.winehq.org/Winelib_User%27s_Guide</span></a> 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.</span><o:p></o:p></p>
<p>A+<o:p></o:p></p>
</div>
</body>
</html>