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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddbed2bffe732d1258ff566c11b9f0a4719f6a26;p=pspp (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