From 9242719ed33f8df5c434a3e9ca9eeb3df68062c2 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sun, 23 Aug 2015 08:22:00 +0000 Subject: [PATCH] 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 --- usr.bin/whois/whois.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 6ad8826ce520..278b50c8a5f1 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -454,7 +454,7 @@ whois(const char *query, const char *hostname, int flags) 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 {