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-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f8f138883fa57150db793ce07514d19469d9550;p=util-linux 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 a153390e..74f5e781 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);