Wireshark-dev: [Wireshark-dev] Wireshark building fails with code page errors on a non-English
Hi list,
The errors are something like:
91>J:\github_repos\wireshark-win64-libs\gtk2\include\glib-2.0\gobject/gsignal.h: warning C4819: The file contains a character that cannot be represented in the current code page(936). Save the file in Unicode format to prevent data loss (J:\github_repos\wireshark\ui\gtk\about_dlg.c)
[J:\github_repos\wsbuild64\ui\gtk\gtkui.vcxproj]
91>J:\github_repos\wireshark-win64-libs\gtk2\include\glib-2.0\gobject/gsignal.h: warning C4819: The file contains a character that cannot be represented in the current code page(936). Save the file in Unicode format to prevent data loss (J:\github_repos\wireshark\ui\gtk\addr_resolution_dlg.c)
[J:\github_repos\wsbuild64\ui\gtk\gtkui.vcxproj]
Finally I found a workaround. I went to "Control Panel" -> "Region" window -> "Administrative" tab -> Change system locale.." button, then switched the locale from Chinese to English, then rebooted. And the compile went through smoothly this time.
But in English locale, all my ANSI programs including .txt files with Chinese characters are broken. They all show messy code. So this is only a temporary hack.
I wonder how other non-English Windows users compile Wireshark? Is there a better solution to solve this issue? I'm using Win10 x64 system.
Cheers,
Yang