[Bug 564698] [NEW] lscpu command shows "???" when messages are translated in Japanese
epii
public.epii at gmail.com
Fri Apr 16 13:48:08 UTC 2010
Public bug reported:
Binary package hint: util-linux
In Japanese environment, the output of lscpu command is garbled like as below:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 4
???????????: 1
???????????: 4
CPU?????: 1
(snip)
This should be displayed as:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 4
コアあたりのスレッド数: 1
ソケットあたりのコア数: 4
CPUソケット数: 1
(snip)
I examined the code and I find that this fixed the problem:
--- lscpu.c.orig 2010-04-16 21:03:50.817368836 +0900
+++ lscpu.c 2010-04-16 22:29:46.426123638 +0900
@@ -694,7 +694,7 @@
{ NULL, 0, 0, 0 }
};
- setlocale(LC_MESSAGES, "");
+ setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
but this time, I find that column spacing is wrong.
I also fixed this problem. I will attach a patch.
Note that I am just a C beginner, please take this patch as a reference.
** Affects: util-linux (Ubuntu)
Importance: Undecided
Status: New
--
lscpu command shows "???" when messages are translated in Japanese
https://bugs.launchpad.net/bugs/564698
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.
More information about the kernel-bugs
mailing list