summaryrefslogtreecommitdiff
path: root/whois.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2006-03-24 21:53:05 +0100
committerMarco d'Itri <md@linux.it>2013-03-30 02:31:33 +0100
commit27fd0b5493d63d5b26d189275e7c5029f16f92f3 (patch)
tree40b6d76f8136c1e503fc476b59052de684509f2d /whois.c
parent07b44b35686379eaf68566a715ca90b74e073ebe (diff)
downloadwhois-27fd0b5493d63d5b26d189275e7c5029f16f92f3.tar.gz
Imported Debian version 4.7.13v4.7.13
Diffstat (limited to 'whois.c')
-rw-r--r--whois.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/whois.c b/whois.c
index eec8433..d69d1cd 100644
--- a/whois.c
+++ b/whois.c
@@ -453,6 +453,13 @@ char *queryformat(const char *server, const char *flags, const char *query)
&& !strchr(query, ' ') && !*flags)
sprintf(buf, "-T dn,ace -C US-ASCII %s", query);
else
+ /* here we have another registrar who could not make things simple
+ * -C sets the language for both input and output
+ */
+ if (!isripe && strcmp(server, "whois.cat") == 0 && domcmp(query, ".cat")
+ && !strchr(query, ' '))
+ sprintf(buf, "-C US-ASCII ace %s", query);
+ else
#endif
if (!isripe && (strcmp(server, "whois.nic.mil") == 0 ||
strcmp(server, "whois.nic.ad.jp") == 0) &&