Fix compiling failure by LLVM/Clang's Windres

Call Windres with explicit UTF-8 encoding for reading .RC files.

Fixes #16410, close #16411
This commit is contained in:
Hernan Martinez 2025-04-11 04:02:11 -06:00 committed by Don Ho
parent 17cdde3622
commit 29c71c46bb

View File

@ -44,7 +44,7 @@ endif
CXXFLAGS := -include $(GCC_DIRECTORY)/gcc-fixes.h -std=c++20
RC := $(CROSS_COMPILE)windres
RCFLAGS :=
RCFLAGS := --codepage=65001
CPP_PATH := $(SCINTILLA_DIRECTORY)/include $(LEXILLA_DIRECTORY)/include
CPP_DEFINE := UNICODE _UNICODE OEMRESOURCE NOMINMAX _WIN32_WINNT=_WIN32_WINNT_WIN7 NTDDI_VERSION=NTDDI_WIN7 TIXML_USE_STL TIXMLA_USE_STL
LD := $(CXX)