diff options
author | Francesco Cosoleto | 2010-06-27 14:24:35 +0200 |
---|---|---|
committer | Karel Zak | 2010-06-30 12:51:35 +0200 |
commit | 2f8f138883fa57150db793ce07514d19469d9550 (patch) | |
tree | 4bc072ba8435fc8250f61fedd8af94cd6a235745 /sys-utils/lscpu.c | |
parent | ipcrm: remove redundant message in case of invalid option (diff) | |
download | kernel-qcow2-util-linux-2f8f138883fa57150db793ce07514d19469d9550.tar.gz kernel-qcow2-util-linux-2f8f138883fa57150db793ce07514d19469d9550.tar.xz kernel-qcow2-util-linux-2f8f138883fa57150db793ce07514d19469d9550.zip |
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 <cosoleto@gmail.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index a153390e3..74f5e781c 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); |