From c333d755d44d4eb764cffd2bd862d86d790e91e6 Mon Sep 17 00:00:00 2001 From: iceweasel-oai Date: Thu, 8 Oct 2026 00:33:29 +0000 Subject: [PATCH] Add the missing `mxc-sdk` UTF-8 resource patch for Bazel (#51890) ## Why `MODULE.bazel` already references `mxc-sdk_utf8_resources.patch`, but the patch file and its Bazel export are missing. ## What changed Add and export the patch to pass `/c65001` to the Windows resource compiler when embedding `mxc-sdk` binary version information, selecting UTF-8 as the resource code page. GitOrigin-RevId: 80cd64e6a8056c61868b5e20fd8e2fee69c1b96b --- patches/BUILD.bazel | 1 + patches/mxc-sdk_utf8_resources.patch | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 patches/mxc-sdk_utf8_resources.patch diff --git a/patches/BUILD.bazel b/patches/BUILD.bazel index 13ea7919eb..e442235b4b 100644 --- a/patches/BUILD.bazel +++ b/patches/BUILD.bazel @@ -4,6 +4,7 @@ exports_files([ "llvm_rusty_v8_custom_libcxx.patch", "llvm_windows_arm64_powl.patch", "llvm_windows_mingw_compat.patch", + "mxc-sdk_utf8_resources.patch", "rules_rust_build_script_tools_transition.patch", "rules_rust_compiler_thp.patch", "rules_rust_process_wrapper_param_file.patch", diff --git a/patches/mxc-sdk_utf8_resources.patch b/patches/mxc-sdk_utf8_resources.patch new file mode 100644 index 0000000000..9e3720c54c --- /dev/null +++ b/patches/mxc-sdk_utf8_resources.patch @@ -0,0 +1,7 @@ +diff --git a/src/mxc-sdk/build/build_mxc_build_common.rs b/src/mxc-sdk/build/build_mxc_build_common.rs +--- a/src/mxc-sdk/build/build_mxc_build_common.rs ++++ b/src/mxc-sdk/build/build_mxc_build_common.rs +@@ -104,2 +104,3 @@ fn embed_version_info_for_binary_windows( + let output = compiler ++ .arg("/c65001") + .arg("/nologo")