[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
Re: [PATCH] ls: Use pretty UTF-8 arrow when showing where symlinks point to
Fri, 7 Aug 2009 01:13:55 +0100 (BST)
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!
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