[Top][All Lists]
[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: |
Pádraig Brady |
Subject: |
Re: [PATCH] ls: Use pretty UTF-8 arrow when showing where symlinks point to |
Date: |
Wed, 12 Aug 2009 11:45:44 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Pádraig Brady wrote:
>
> Oh right, so something like:
>
> static const char *arrow;
> if (!arrow)
> {
> if (fancy_chars && STREQ (locale_charset(), "UTF-8"))
> arrow = " \xe2\x86\x92 ";
> else
> arrow = " -> ";
> }
> DIRED_FPUTS_LITERAL (arrow, stdout);
>
> Note the use of locale_charset() from gnulib for portability.
BTW I still don't think this patch should be applied,
as the benefit from the new option is not big enough,
and much the same affect can be achieved with a
little post processing as demonstrated.
cheers,
Pádraig.