From: Jim Meyering Date: Wed, 4 Apr 2001 14:50:47 +0000 (+0000) Subject: Don't inspect MB_LEN_MAX. Paul Eggert says it's X-Git-Tag: FILEUTILS-4_0_44~31 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=f164f705238b1055f8c2d4ced341e7f3e568a46c;p=thirdparty%2Fcoreutils.git Don't inspect MB_LEN_MAX. Paul Eggert says it's not always defined correctly. --- diff --git a/src/ls.c b/src/ls.c index f35aede688..c690126357 100644 --- a/src/ls.c +++ b/src/ls.c @@ -70,11 +70,6 @@ #include #include -/* Get MB_LEN_MAX. */ -#if HAVE_LIMITS_H -# include -#endif - /* Get MB_CUR_MAX. */ #if HAVE_STDLIB_H # include @@ -2644,7 +2639,7 @@ quote_name (FILE *out, const char *name, struct quoting_options const *options) if (qmark_funny_chars) { -#if HAVE_MBRTOWC && (MB_LEN_MAX > 1) +#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { const char *p = buf; @@ -2765,7 +2760,7 @@ quote_name (FILE *out, const char *name, struct quoting_options const *options) else { /* Assume unprintable characters have a displayed_width of 1. */ -#if HAVE_MBRTOWC && (MB_LEN_MAX > 1) +#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) displayed_width = mbsnwidth (buf, len, (MBSW_ACCEPT_INVALID