When I try to build the sources on Windows in non-English (Japanese) environment, it fails. See the details here: notepad-plus-plus/notepad-plus-plus#13991
I have attached a suggested fix as attachement, but just in case this is the diff of Scintilla.vcxproj which I'd like to modify
diff --git a/scintilla/win32/Scintilla.vcxproj b/scintilla/win32/Scintilla.vcxproj
index 2911afdd..2225ebcd 100644
--- a/scintilla/win32/Scintilla.vcxproj
+++ b/scintilla/win32/Scintilla.vcxproj
@@ -97,6 +97,7 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <AdditionalOptions>/source-charset:utf-8 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
SciTE.vcxproj and
CXXFLAGSinside scintilla.mak or scite.mak needs similar (/source-charset:utf-8or just/utf-8) change.@zufuliu attached is a suggestion of scintilla.mak (and just in case the diff is as follows). I can't find "SciTE.vcxproj" in the repo.
Last edit: Tsuyoshi Miyake 2023-08-28
Committed with [cf5b20] and [11c642].
Related
Commit: [11c642]
Commit: [cf5b20]
scite.mak is not updated.
scite.mak does not (currently) compile any files containing UTF-8. The files containing UTF-8 are either in Lexilla or Scintilla and are compiled into libraries by the makefiles in those projects then linked or loaded into SciTE.
To allow easy debugging of all code, SciTE.vcxproj compiles everything in Lexilla, Scintilla, and SciTE so needs the flag.