diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/duilib/fix-encoding.patch | |
Diffstat (limited to 'vcpkg/ports/duilib/fix-encoding.patch')
| -rw-r--r-- | vcpkg/ports/duilib/fix-encoding.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/duilib/fix-encoding.patch b/vcpkg/ports/duilib/fix-encoding.patch new file mode 100644 index 0000000..526f43f --- /dev/null +++ b/vcpkg/ports/duilib/fix-encoding.patch @@ -0,0 +1,16 @@ +diff --git a/DuiLib/CMakeLists.txt b/DuiLib/CMakeLists.txt +index 4961174..96b8fe4 100644 +--- a/DuiLib/CMakeLists.txt ++++ b/DuiLib/CMakeLists.txt +@@ -14,6 +14,11 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Core) + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Layout)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Utils)
+
++if (MSVC)
++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /source-charset:.936")
++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /source-charset:.936")
++endif()
++
+ set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
+ add_library(duilib SHARED ${Control_src} ${Core_src} ${Layout_src} ${Utils_src} ${Root_src})
+ |