fix: Add win32 manifest file for UTF-8 support in whisper-cli

This commit is contained in:
ipcjs.395 2026-01-17 04:42:59 +08:00
parent 2eeeba56e9
commit c3c7e3c428
2 changed files with 14 additions and 0 deletions

View File

@ -5,4 +5,8 @@ include(DefaultTargetOptions)
target_link_libraries(${TARGET} PRIVATE common whisper ${FFMPEG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
if (WIN32)
target_sources(${TARGET} PRIVATE win32.manifest)
endif()
install(TARGETS ${TARGET} RUNTIME)

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- https://stackoverflow.com/questions/79668459/c-argv-with-utf-8-values-are-incorrect-in-the-program -->
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity type="win32" name="whisper-cli" version="1.0.0.0"/>
<application>
<windowsSettings>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
</windowsSettings>
</application>
</assembly>