* bootstrap.conf (gnulib_modules): Include mbrtowc explicitly.
* src/ls.c (quote_name): Don't test HAVE_MBRTOWC, now that we're
guaranteed to have the function.
* src/wc.c (wc): Likewise.
ignore-value
inttostr inttypes isapipe
lchmod lchown lib-ignore linebuffer link-follow
- long-options lstat malloc mbswidth memcasecmp mempcpy
+ long-options lstat malloc
+ mbrtowc
+ mbswidth
+ memcasecmp mempcpy
memrchr mgetgroups
mkancesdirs mkdir mkdir-p mkstemp mktime modechange
mountlist mpsort obstack pathmax perl physmem
if (qmark_funny_chars)
{
-#if HAVE_MBRTOWC
if (MB_CUR_MAX > 1)
{
char const *p = buf;
len = q - buf;
}
else
-#endif
{
char *p = buf;
char const *plimit = buf + len;
}
else if (width != NULL)
{
-#if HAVE_MBRTOWC
if (MB_CUR_MAX > 1)
displayed_width = mbsnwidth (buf, len, 0);
else
-#endif
{
char const *p = buf;
char const *plimit = buf + len;
/* If in the current locale, chars are equivalent to bytes, we prefer
counting bytes, because that's easier. */
-#if HAVE_MBRTOWC && (MB_LEN_MAX > 1)
+#if MB_LEN_MAX > 1
if (MB_CUR_MAX > 1)
{
count_bytes = print_bytes;
bytes += bytes_read;
}
}
-#if HAVE_MBRTOWC && (MB_LEN_MAX > 1)
+#if MB_LEN_MAX > 1
# define SUPPORT_OLD_MBRTOWC 1
else if (MB_CUR_MAX > 1)
{