Re: [PATCH 1/1] paint visual host key with unicode box-drawing characters

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

 



Aris Adamantiadis <aris@xxxxxxxxxxxx> on Mon, 2015/07/06 13:22:
> Le 06/07/15 12:33, Alex Bligh a écrit :
> > On 6 Jul 2015, at 11:05, Christian Hesse <list@xxxxxxxx> 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.

Good point. Should be pretty easy to fix that, though.

Waiting for more comments, will send an updated patch later.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}

Attachment: pgpmHaif1OkpG.pgp
Description: OpenPGP digital signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux