updated for version 7.0151
diff --git a/src/main.c b/src/main.c
index 898205e..f7e2b1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1236,6 +1236,12 @@
 init_locale()
 {
     setlocale(LC_ALL, "");
+# ifdef WIN32
+    /* Apparently MS-Windows printf() may cause a crash when we give it 8-bit
+     * text while it's expecting text in the current locale.  This call avoids
+     * that. */
+    setlocale(LC_CTYPE, "C");
+# endif
 
 # ifdef FEAT_GETTEXT
     {