projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8ef35
)
unicode: update unicode_width on !unicode branch too. Closes bug 2593
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Oct 2010 22:50:09 +0000
(
00:50
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 28 Oct 2010 22:50:09 +0000
(
00:50
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/unicode.c
patch
|
blob
|
history
diff --git
a/libbb/unicode.c
b/libbb/unicode.c
index 70c6abe00106a2bc77a02eaf613df5949e9cfb60..cf0c6bed9754e97663d0fd216a63277de3de9825 100644
(file)
--- a/
libbb/unicode.c
+++ b/
libbb/unicode.c
@@
-1005,8
+1005,11
@@
static char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char
d++;
}
}
- if (stats)
- stats->byte_count = stats->unicode_count = (d - dst);
+ if (stats) {
+ stats->byte_count = (d - dst);
+ stats->unicode_count = (d - dst);
+ stats->unicode_width = (d - dst);
+ }
return dst;
}