summaryrefslogtreecommitdiffstats
path: root/usr.bin/whois/whois.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-08-23 08:22:00 +0000
committerdelphij <delphij@FreeBSD.org>2015-08-23 08:22:00 +0000
commit790cec3cb6ea4528fae1765be8cfc6458e05c64f (patch)
treeea6ef712eb5d99c1d7e87f99a622b71c122cfb28 /usr.bin/whois/whois.c
parent2af8300f0a0bd96ae7c076d410b2e6e808060d5a (diff)
downloadFreeBSD-src-790cec3cb6ea4528fae1765be8cfc6458e05c64f.zip
FreeBSD-src-790cec3cb6ea4528fae1765be8cfc6458e05c64f.tar.gz
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
Diffstat (limited to 'usr.bin/whois/whois.c')
-rw-r--r--usr.bin/whois/whois.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index 6ad8826..278b50c 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -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 {
OpenPOWER on IntegriCloud