msvc_recommended_pragmas.h: Re-enable C4819 warnings
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 20 Jun 2012 02:19:14 +0000 (10:19 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 20 Jun 2012 02:19:14 +0000 (10:19 +0800)
Apparently the C4819 warnings appear due to a bug on Visual C++ on DBCS
locales, so re-enable this.

Add a note in the Visual C++ Readme.txt's regarding this.

build/win32/vs10/README.txt
build/win32/vs9/README.txt
msvc_recommended_pragmas.h

index 69da5f4..b5e092f 100644 (file)
@@ -73,5 +73,12 @@ built DLLs go into <root>\vs10\<PlatformName>\bin, built LIBs into
 project files higher in the stack are supposed to look for them, not\r
 from a specific GLib source tree.\r
 \r
+Note: If you see C4819 warnings and you are compiling GLib on a DBCS\r
+(Chinese/Korean/Japanese) version of Windows, you may need to switch\r
+to an English locale in Control Panel->Region and Languages->System->\r
+Change System Locale, reboot and rebuild to ensure GLib, Pango, GDK-Pixbuf,\r
+ATK and GTK+ is built correctly.  This is due to a bug in Visual C++ running\r
+on DBCS locales.\r
+\r
 --Tor Lillqvist <tml@iki.fi>\r
 --Updated by Chun-wei Fan <fanc999@gmail.com>\r
index d760ce8..59e77b2 100644 (file)
@@ -73,5 +73,12 @@ built DLLs go into <root>\vs9\<PlatformName>\bin, built LIBs into
 project files higher in the stack are supposed to look for them, not\r
 from a specific GLib source tree.\r
 \r
+Note: If you see C4819 warnings and you are compiling GLib on a DBCS\r
+(Chinese/Korean/Japanese) version of Windows, you may need to switch\r
+to an English locale in Control Panel->Region and Languages->System->\r
+Change System Locale, reboot and rebuild to ensure GLib, Pango, GDK-Pixbuf,\r
+ATK and GTK+ is built correctly.  This is due to a bug in Visual C++ running\r
+on DBCS locales.\r
+\r
 --Tor Lillqvist <tml@iki.fi>\r
 --Updated by Chun-wei Fan <fanc999@gmail.com>\r
index ff4028e..f78f9a1 100644 (file)
@@ -27,9 +27,6 @@
 #pragma warning(disable:4244)  /* No possible loss of data warnings */
 #pragma warning(disable:4305)   /* No truncation from int to char warnings */
 
-/* The file contains a character that cannot be represented in the current code page */
-#pragma warning(disable:4819)
-
 /* work around Microsoft's premature attempt to deprecate the C-Library */
 #define _CRT_SECURE_NO_WARNINGS
 #define _CRT_NONSTDC_NO_WARNINGS