[PATCH 1/1] paint visual host key with unicode box-drawing characters
Aris Adamantiadis
aris at 0xbadc0de.be
Mon Jul 6 21:22:50 AEST 2015
Le 06/07/15 12:33, Alex Bligh a écrit :
> On 6 Jul 2015, at 11:05, Christian Hesse <list at eworm.de> wrote:
>
>> +#ifdef HAVE_LOCALE_H
>> + char *locale;
>> + char *border_utf8[] = { "┏", "━", "┓", "┃", "┗", "┛" };
>> +#endif
>> + char *border_ascii[] = { "+", "-", "+", "|", "+", "+" };
>> + char **border;
> What if LOCALE_H is present at compile time but the binary is then
> run in a non-unicode locale?
>
I'm more concerned about the UTF-8 in the source code... are all
compilers able to deal with that? Simple workaround would be to use hex
encoding instead.
Aris
More information about the openssh-unix-dev
mailing list