1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-11 22:54:02 +02:00

(quote_name): Pass 0 to mbsnwidth, since the default

got changed and we want the default now.
This commit is contained in:
Jim Meyering
2001-08-04 17:08:37 +00:00
parent 0017571134
commit aecb3ebe6f

View File

@@ -2873,9 +2873,7 @@ quote_name (FILE *out, const char *name, struct quoting_options const *options)
/* Assume unprintable characters have a displayed_width of 1. */
#if HAVE_MBRTOWC
if (MB_CUR_MAX > 1)
displayed_width = mbsnwidth (buf, len,
(MBSW_ACCEPT_INVALID
| MBSW_ACCEPT_UNPRINTABLE));
displayed_width = mbsnwidth (buf, len, 0);
else
#endif
displayed_width = len;