changeset 2973:cfb7d72826f8

(MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.
author Jim Meyering <jim@meyering.net>
date Thu, 09 Nov 2000 08:32:52 +0000
parents a90a381a26a8
children ab9ad3db942a
files lib/unicodeio.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/unicodeio.c	Thu Nov 09 08:30:00 2000 +0000
+++ b/lib/unicodeio.c	Thu Nov 09 08:32:52 2000 +0000
@@ -42,8 +42,12 @@
 #if HAVE_LIMITS_H
 # include <limits.h>
 #endif
-#ifndef MB_LEN_MAX
-# define MB_LEN_MAX 1
+
+/* MB_LEN_MAX is incorrectly defined to be 1 in at least one GCC
+   installation; work around this configuration error.  */
+#if MB_LEN_MAX < 6
+# undef MB_LEN_MAX
+# define MB_LEN_MAX 6
 #endif
 
 #if HAVE_ICONV