From 28055028a709020ba7eb44f9e5037d0a952b51d6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 4 Jan 2010 20:49:58 +0100 Subject: fold: unicode support. Based on a patch by Tomas Heinrich 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 --- coreutils/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/df.c') diff --git a/coreutils/df.c b/coreutils/df.c index 83794ad88..bcde78393 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -58,7 +58,7 @@ int df_main(int argc UNUSED_PARAM, char **argv) const char *disp_units_hdr = NULL; char *chp; - check_unicode_in_env(); + init_unicode(); #if ENABLE_FEATURE_HUMAN_READABLE && ENABLE_FEATURE_DF_FANCY opt_complementary = "k-mB:m-Bk:B-km"; -- cgit v1.2.3