projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582b534
)
(MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries.
author
Jim Meyering
<jim@meyering.net>
Thu, 9 Nov 2000 08:32:52 +0000
(08:32 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 9 Nov 2000 08:32:52 +0000
(08:32 +0000)
lib/unicodeio.c
patch
|
blob
|
history
diff --git
a/lib/unicodeio.c
b/lib/unicodeio.c
index b70c5b476dc574cd34fa5b36e4a5ce29b45ef946..c753e3d509299d53e312e426a1be298544d0578a 100644
(file)
--- a/
lib/unicodeio.c
+++ b/
lib/unicodeio.c
@@
-42,8
+42,12
@@
extern int errno;
#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