From: Francesco Cosoleto Date: Sun, 27 Jun 2010 12:24:35 +0000 (+0200) Subject: lscpu: replace LC_MESSAGES with LC_ALL in setlocate() X-Git-Tag: v2.18~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f8f138883fa57150db793ce07514d19469d9550;p=thirdparty%2Futil-linux.git lscpu: replace LC_MESSAGES with LC_ALL in setlocate() LC_CTYPE is necessary to print correctly some non English characters, set LC_ALL for the sake of brevity. Example: $ LANG=fr_FR lscpu -p | head -n 1 \# La suite est en format analysable, transmissible ? d'autres instead of: \# La suite est en format analysable, transmissible à d'autres Signed-off-by: Francesco Cosoleto --- diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index a153390e30..74f5e781c9 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -835,7 +835,7 @@ int main(int argc, char *argv[]) { NULL, 0, 0, 0 } }; - setlocale(LC_MESSAGES, ""); + setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE);