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.


Reply via email to