bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Misalignment of pinky output: lack of support of multibyte char


From: Pádraig Brady
Subject: Re: Misalignment of pinky output: lack of support of multibyte char
Date: Fri, 15 Jan 2010 11:36:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

On 15/01/10 11:28, Jim Meyering wrote:
Rodolfo Ribeiro Gomes wrote:
Hello. I was translating coreutils 8.3 and testing it when I saw that
the pinky output was not fine:
$ pinky
Usuário Nome                 TTY      Ocioso Quando           Onde
rodolfo  Rodolfo Ribeiro Gom  tty7     03:07  2010-01-14 18:03 :0

So I tried to see it on english, and it is ok:

$ LC_ALL=en pinky
Login    Name                 TTY      Idle   When         Where
rodolfo  Rodolfo Ribeiro Gom  tty7     03:10  Jan 14 18:03 :0

I changed the char á from my string as I use UTF-8, and it becomes ok,
but not with a correct spell:

$ pinky
Usuario  Nome                 TTY      Ocioso Quando           Onde
rodolfo  Rodolfo Ribeiro Gom  tty7     03:10  2010-01-14 18:03 :0

Thanks for the report.
There are a few programs like this, including df and who.
No one has been motivated to work on the general problem,
but we would welcome patches.

Note there is mbsalign() functionality now in ls
which could be used for this. I'll have a look at some stage.

cheers,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]