From: Jim Meyering Date: Thu, 9 Nov 2000 08:32:52 +0000 (+0000) Subject: (MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries. X-Git-Tag: FILEUTILS-4_0_32~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48a83af35c232967c813e9a1c5f7e1af983b6117;p=thirdparty%2Fcoreutils.git (MB_LEN_MAX): Make sure it's at least 6, to avoid buggy C libraries. --- diff --git a/lib/unicodeio.c b/lib/unicodeio.c index b70c5b476d..c753e3d509 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -42,8 +42,12 @@ extern int errno; #if HAVE_LIMITS_H # include #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