Qt6 sets UNICODE on Windows

Yu Jin yu_jin at lyx.org
Mon Jun 7 18:03:47 UTC 2021


Am Mo., 31. Mai 2021 um 16:42 Uhr schrieb Pavel Sanda <sanda at lyx.org>:

> On Sat, May 29, 2021 at 06:47:05PM +0200, Yu Jin wrote:
> > > But I also think that the "universal" function calls (CreateNamedPipe()
> > > and WaitNamedPipe()) should be made specific (CreateNamedPipeA() and
> > > WaitNamedPipeA()), because the arguments are also specific (c_str()
> always
> > > returns const char*). I have attached the patch showing it, the patch
> alone
> > > fixes the compilation with unicode definition (can I commit it?). Once
> Qt
> > > 6.1.1 releases though, I will create a patch to disable unicode in
> CMake
> > > again.
> > >
> > Forgot the patch.
>
> It's inside _WIN32 section, thus safe for other archs. So I'd say go on
> and commit. :)
>

Thanks, Qt 6.1.1 released today, as mentioned I have prepared the patch for
CMake, please review. I have tested successfully with both Qt6 and Qt5. On
Qt5 it does nothing, because the property did not exist back then I guess.
Note: With this version Qt6 sets UNICODE for basically everything now, so
also libraries and console applications, so the patch deactivates it for
all main targets.
-- 
    Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210607/9a4017ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file.diff
Type: application/octet-stream
Size: 4149 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210607/9a4017ce/attachment.obj>


More information about the lyx-devel mailing list