sw
sw copied to clipboard
cmake add utf-8 opiton on windows
I hava already set utf-8 for mscv on windwos by:
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
It seems like work on my self project, but it not passed to sw
, the sw
still says encoding issue like this:
[345/3535] [org.sw.demo.webmproject.webp-1.2.4]/src/dsp/lossless_enc_mips32.c
Exception in file D:/dev/cppan2/client2/src/sw/builder/command.cpp:840, function execute1: When executing: [org.sw.de
mo.gnome.glib.glib-2.74.0]/glib/gconvert.c
C:/Users/huhua/.sw/storage/pkg/64/44/ac7e/src/sdir/glib/gconvert.c(1): warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [F:\tesser
act\build\sw_build_dependencies.vcxproj]
How can I fix or debu this? Thank you!
Hi,
Try tgt.CompileOptions.insert("/utf-8");
I've added that option to glib package.