]> www.wagner.pp.ru Git - oss/less.git/blobdiff - charset.c
Removed code page operation. Fix GLOB macros for 64-bit win32. Fixed debug flags...
[oss/less.git] / charset.c
index 4c62664e73d1008a48dc8bb564314c3c4c56f272..b427c49f580a16b45d3d61befd8d52ec4f6abc25 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -14,6 +14,9 @@
  */
 
 #include "less.h"
+#if MSDOS_COMPILER==WIN32C
+#include <windows.h>
+#endif
 #if HAVE_LOCALE
 #include <locale.h>
 #include <ctype.h>
@@ -319,7 +322,10 @@ set_charset()
                ichardef(s);
                return;
        }
-
+#ifdef WIN32
+       icharset("UTF-8",0);
+       
+#else 
 #if HAVE_LOCALE
 #ifdef CODESET
        /*
@@ -364,6 +370,7 @@ set_charset()
        (void) icharset("latin1", 1);
 #endif
 #endif
+#endif
 }
 
 /*