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

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

 



Hello everybody,

this is an updated version with these changes:

* unicode characters are encoded using octal values
* added two more unicode characters to replace brackets
* made ssh work, but:

Christian Hesse <list@xxxxxxxx> on Mon, 2015/07/06 15:18:
> --- a/log.c
> +++ b/log.c
> @@ -444,7 +444,7 @@ do_log(LogLevel level, const char *fmt, va_list args)
>  		tmp_handler(level, fmtbuf, log_handler_ctx);
>  		log_handler = tmp_handler;
>  	} else if (log_on_stderr) {
> -		snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf);
> +		/* we want unicode multi byte characters, so do not use
> fmtbuf here */ (void)write(log_stderr_fd, msgbuf, strlen(msgbuf));
>  	} else {
>  #if defined(HAVE_OPENLOG_R) && defined(SYSLOG_DATA_INIT)

Does that break anything?
-- 
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: pgpOCUKco_kat.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