diff options
author | 2016-07-17 04:20:16 +0000 | |
---|---|---|
committer | 2016-07-17 04:20:16 +0000 | |
commit | c0582a247f8615482f8ee7d23e92e358bbf9be80 (patch) | |
tree | a8a2fe69b1173a5d1e4dc7e29cad5c98db17530c /usr.bin/ssh/ssh.c | |
parent | Remove now obsolete parenthetical explanation (should have been part of (diff) | |
download | wireguard-openbsd-c0582a247f8615482f8ee7d23e92e358bbf9be80.tar.xz wireguard-openbsd-c0582a247f8615482f8ee7d23e92e358bbf9be80.zip |
support UTF-8 characters in ssh(1) banners using schwarze@'s
safe fmprintf printer; bz#2058
feedback schwarze@ ok dtucker@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index b7dca7f0d00..a4a6a3591cf 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.444 2016/07/16 06:57:55 jmc Exp $ */ +/* $OpenBSD: ssh.c,v 1.445 2016/07/17 04:20:16 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -62,6 +62,7 @@ #include <string.h> #include <unistd.h> #include <limits.h> +#include <locale.h> #ifdef WITH_OPENSSL #include <openssl/evp.h> @@ -562,6 +563,8 @@ main(int ac, char **av) */ umask(022); + setlocale(LC_CTYPE, ""); + /* * Initialize option structure to indicate that no values have been * set. |