summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-04-04 14:50:47 +0000
committerJim Meyering <jim@meyering.net>2001-04-04 14:50:47 +0000
commitf164f705238b1055f8c2d4ced341e7f3e568a46c (patch)
treeced804ab6181cc2c909e2abde8d4f35e30f4015c /src/ls.c
parentb22ba791cb9aec0330b4dd666c9c4d6019c06979 (diff)
downloadcoreutils-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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ls.c b/src/ls.c
index f35aede68..c69012635 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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