bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] ls: Use pretty UTF-8 arrow when showing where symlinks point


From: Philip Rowlands
Subject: Re: [PATCH] ls: Use pretty UTF-8 arrow when showing where symlinks point to
Date: Fri, 7 Aug 2009 01:13:55 +0100 (BST)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

On Thu, 6 Aug 2009, Lennart Poettering wrote:

Diego Petten? complained that "ls -l" doesn't use the UTF-8 arrow
character to show where symlinks point to. This tiny patch fixes that.
With this applied the character is used when the CODESET is UTF-8
otherwise we fall back to the traditional "->" arrow.

Ah, "ls -l" is so much prettier now with this oh-so-important patch!
For verification:

http://pastie.org/573270

This will of course break scripts that try to parse the output of "ls
-l" and look for "->". But quite frankly those scripts are broken
anyway and should be using "LC_MESSAGES=C" or suchlike. One could
argue this breakage might even be desirable.

Why are scripts which look for "->" broken? It's explicitly stated in the standard:

http://www.opengroup.org/onlinepubs/000095399/utilities/ls.html


Cheers,
Phil




reply via email to

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