From 2f8f138883fa57150db793ce07514d19469d9550 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Sun, 27 Jun 2010 14:24:35 +0200 Subject: [PATCH] lscpu: replace LC_MESSAGES with LC_ALL in setlocate() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5