[Bug 564698] Re: lscpu command shows "???" when messages are translated in Japanese

Francesco Cosoleto 564698 at bugs.launchpad.net
Thu Aug 27 12:53:55 UTC 2015


This issue has been fixed.

https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/sys-
utils/lscpu.c?id=2f8f138883fa57150db793ce07514d19469d9550

** Changed in: util-linux (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/564698

Title:
  lscpu command shows "???" when messages are translated in Japanese

Status in util-linux package in Ubuntu:
  Fix Released

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/564698/+subscriptions



More information about the foundations-bugs mailing list