Qt6 sets UNICODE on Windows

Kornel Benko kornel at lyx.org
Sat May 29 08:22:15 UTC 2021


Am Sat, 29 May 2021 09:56:06 +0200
schrieb Yu Jin <yu_jin at lyx.org>:

> this is connected to the Beta 1 tarballs, trying to build LyX I stumbled
> across this:
> [image: grafik.png]
> Apparently Qt6 sets UNICODE and _UNICODE on LyX (and only on LyX) when
> configuring without LYX_CONSOLE. It does that by setting the character set
> to Unicode (as shown in the screenshot above) and it also sets the
> "UNICODE" and "_UNICODE" preprocessor definitions manually. Qt5 does not do
> that. I have just tried to manually change the character set and remove
> those definitions in Visual Studio and it worked just fine. Any Idea if
> this is intended by us or how we can prevent it? Maybe in CMake?

The only setting for UNICODE i see is in
	development/Win32/vld/cmake/CMakeLists.txt
This is used, if LYX_VLD is set. But this should be OFF on default.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210529/1c55f4e8/attachment.asc>


More information about the lyx-devel mailing list