projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0017571
)
(quote_name): Pass 0 to mbsnwidth, since the default
author
Jim Meyering
<jim@meyering.net>
Sat, 4 Aug 2001 17:08:37 +0000
(17:08 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 4 Aug 2001 17:08:37 +0000
(17:08 +0000)
got changed and we want the default now.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
db7864e
..
6c2cefa
100644
(file)
--- a/
src/ls.c
+++ b/
src/ls.c
@@
-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;