diff options
author | Jim Meyering <jim@meyering.net> | 2001-04-04 14:50:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-04-04 14:50:47 +0000 |
commit | f164f705238b1055f8c2d4ced341e7f3e568a46c (patch) | |
tree | ced804ab6181cc2c909e2abde8d4f35e30f4015c /src/ls.c | |
parent | b22ba791cb9aec0330b4dd666c9c4d6019c06979 (diff) | |
download | coreutils-f164f705238b1055f8c2d4ced341e7f3e568a46c.tar.xz |
Don't inspect MB_LEN_MAX. Paul Eggert says it's
not always defined correctly.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -70,11 +70,6 @@ #include <pwd.h> #include <getopt.h> -/* Get MB_LEN_MAX. */ -#if HAVE_LIMITS_H -# include <limits.h> -#endif - /* Get MB_CUR_MAX. */ #if HAVE_STDLIB_H # include <stdlib.h> @@ -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 |