From owner-svn-src-head@freebsd.org Sun Aug 23 08:22:01 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F16D9BF7AE; Sun, 23 Aug 2015 08:22:01 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DD95170B; Sun, 23 Aug 2015 08:22:01 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7N8M1FY096670; Sun, 23 Aug 2015 08:22:01 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7N8M1rf096669; Sun, 23 Aug 2015 08:22:01 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201508230822.t7N8M1rf096669@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Sun, 23 Aug 2015 08:22:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287030 - head/usr.bin/whois X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2015 08:22:01 -0000 Author: delphij Date: Sun Aug 23 08:22:00 2015 New Revision: 287030 URL: https://svnweb.freebsd.org/changeset/base/287030 Log: Although the website [1] says US-ASCII is accepted, ISO-8859-1 seems to be the only accepted character that is close enough to US-ASCII (and this is also done on OpenBSD; the alternative would be to use UTF-8). [1] http://www.denic.de/en/domains/technik/denic_whois-server/index.html MFC after: 2 weeks Modified: head/usr.bin/whois/whois.c Modified: head/usr.bin/whois/whois.c ============================================================================== --- head/usr.bin/whois/whois.c Sun Aug 23 01:17:52 2015 (r287029) +++ head/usr.bin/whois/whois.c Sun Aug 23 08:22:00 2015 (r287030) @@ -454,7 +454,7 @@ done: if (fp == NULL) err(EX_OSERR, "fdopen()"); if (strcmp(hostname, GERMNICHOST) == 0) { - fprintf(fp, "-T dn,ace -C US-ASCII %s\r\n", query); + fprintf(fp, "-T dn,ace -C ISO-8859-1 %s\r\n", query); } else if (strcmp(hostname, "dk" QNICHOST_TAIL) == 0) { fprintf(fp, "--show-handles %s\r\n", query); } else {