]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
More Woe32 support.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Apr 2003 11:05:42 +0000 (11:05 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:20 +0000 (12:10 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac

index 07c6c1af222a7bba6f5e42fd6785870e84b2e075..b163a00dc69e4eaf3a01b6a0c7ae90cf7436f84c 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-03  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac (INVALID_PATH_CHAR): Add a definition for Woe32.
+       Reported by Perry Rapp.
+
 2003-03-30  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.vms: New file.
index ca05ed354afb15871242b6ef6694f71d45a17a7f..046b91bd45ec04c38708ad702615b4c87ddadd9e 100644 (file)
@@ -142,11 +142,17 @@ AH_TOP([
 AH_BOTTOM([
 /* A file name cannot consist of any character possible.  INVALID_PATH_CHAR
    contains the characters not allowed.  */
-#ifndef MSDOS
-# define       INVALID_PATH_CHAR "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37 \177/"
-#else
+#if defined _MSC_VER || defined __MINGW32__
+/* Woe32.  This string is valid for Windows NT/2000.  On Windows 95/98/ME some
+   few characters in the range 0x80..0xff are invalid as well, but this doesn't
+   matter much for our purposes.  */
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\"*/:<>?\\|"
+#elif defined MSDOS
 /* Something like this for MSDOG.  */
-# define       INVALID_PATH_CHAR "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37 \177\\:."
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177\\:."
+#else
+/* Unix.  */
+# define INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 \177/"
 #endif
 
 /* This is the page width for the message_print function.  It should