From d2ece2affe3b0daa4641ece6068d7082df093bc3 Mon Sep 17 00:00:00 2001 From: Costas Argyris Date: Sun, 25 Jun 2023 21:23:59 +0100 Subject: [PATCH] mingw-host: Insert resource to enable UTF-8 active code page. --- config/mh-mingw | 6 ++++++ config/utf8-mingw.manifest | 8 ++++++++ config/utf8-mingw.rc | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 config/utf8-mingw.manifest create mode 100644 config/utf8-mingw.rc diff --git a/config/mh-mingw b/config/mh-mingw index a795096f038..c02a6ccb1be 100644 --- a/config/mh-mingw +++ b/config/mh-mingw @@ -11,3 +11,9 @@ STAGE4_CXXFLAGS += -D__USE_MINGW_ACCESS # as GCC turns out to need that much more to pass all the limits-* tests. LDFLAGS += -Wl,--stack,12582912 BOOT_LDFLAGS += -Wl,--stack,12582912 + +# UTF-8 resource object +UTF8RES := `$(WINDRES) $(srcdir)/config/utf8-mingw.rc $$r/utf8res.o \ +&& echo $$r/utf8res.o` + +LDFLAGS += -Wl,$(UTF8RES) \ No newline at end of file diff --git a/config/utf8-mingw.manifest b/config/utf8-mingw.manifest new file mode 100644 index 00000000000..0dff8970043 --- /dev/null +++ b/config/utf8-mingw.manifest @@ -0,0 +1,8 @@ + + + + + UTF-8 + + + \ No newline at end of file diff --git a/config/utf8-mingw.rc b/config/utf8-mingw.rc new file mode 100644 index 00000000000..96c7237c6bc --- /dev/null +++ b/config/utf8-mingw.rc @@ -0,0 +1,3 @@ +#include + +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "utf8-mingw.manifest" \ No newline at end of file -- 2.41.0