diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-04 20:49:58 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-04 20:49:58 +0100 |
commit | 28055028a709020ba7eb44f9e5037d0a952b51d6 (patch) | |
tree | bb5dc7052f04e66ad74bbbcc9917d638cd603b24 /coreutils/expand.c | |
parent | d2b1ba6fdee59645763e915ade3ec55e67d5839a (diff) | |
download | busybox-w32-28055028a709020ba7eb44f9e5037d0a952b51d6.tar.gz busybox-w32-28055028a709020ba7eb44f9e5037d0a952b51d6.tar.bz2 busybox-w32-28055028a709020ba7eb44f9e5037d0a952b51d6.zip |
fold: unicode support. Based on a patch by Tomas Heinrich <heinrich.tomas@gmail.com>
General Unicode support is tweaked to expose unicode_status.
function old new delta
init_unicode - 77 +77
write2stdout - 19 +19
adjust_column 68 71 +3
unicode_status - 1 +1
unicode_is_enabled 1 - -1
grep_main 780 773 -7
fold_main 619 552 -67
check_unicode_in_env 77 - -77
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 1/2 up/down: 100/-152) Total: -52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/expand.c')
-rw-r--r-- | coreutils/expand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/expand.c b/coreutils/expand.c index e08eb1d0a..649b4c175 100644 --- a/coreutils/expand.c +++ b/coreutils/expand.c | |||
@@ -144,7 +144,7 @@ int expand_main(int argc UNUSED_PARAM, char **argv) | |||
144 | "all\0" No_argument "a" | 144 | "all\0" No_argument "a" |
145 | ; | 145 | ; |
146 | #endif | 146 | #endif |
147 | check_unicode_in_env(); | 147 | init_unicode(); |
148 | 148 | ||
149 | if (ENABLE_EXPAND && (!ENABLE_UNEXPAND || applet_name[0] == 'e')) { | 149 | if (ENABLE_EXPAND && (!ENABLE_UNEXPAND || applet_name[0] == 'e')) { |
150 | IF_FEATURE_EXPAND_LONG_OPTIONS(applet_long_options = expand_longopts); | 150 | IF_FEATURE_EXPAND_LONG_OPTIONS(applet_long_options = expand_longopts); |