Description of problem: jwhois has no IDN support (umlaut domains) which is used for example by DENIC (www.denic.de). Version-Release number of selected component (if applicable): jwhois-3.2.2-2 How reproducible && Steps to Reproduce: 1. whois dänic.de # (ä is a german umlaut) Actual results: German umlaut domains have now to queried with that parameters: -C <charset> -T dn <domain> These charsets are allowed: UTF-8, UTF-16, ISO-8859-1, US-ASCII For UTF-8 *only* the following is for german umlaut domains enough: /etc/jwhois.conf: --- snipp --- "\\.de$" { whois-server = "whois.denic.de"; query-format = "-T dn $*"; } --- snapp --- Expected results: But not the whole world has UTF-8 as native charset, so there should written a patch which solve that charset problems (automatic charset detection and/or conversion). Additional info: Maybe libidn-0.4.0 is included and combined with jwhois for solving that problem.
For my personal use I coded out a hack, that gives jwhois IDN support for all TLDs independend from the charset - I still couldn't test all, but the relevant ones (e.g. UTF-8, ISO-8859-1). This solution still works for me. I'm still curious how Red Hat solves the "problem" with the IDN domains... ;-) I attached both spec files and the patch (Patch2 (German translation) depends on #120345).
Created attachment 99213 [details] jwhois spec file with IDN support
Created attachment 99214 [details] jwhois IDN patch
Created attachment 99215 [details] libidn spec file
Setting the severity to high, because there are lots of european users (especially FC1/2 users) needing a whois with IDN support soon. Upstream currently doesn't accept my hack (as well as my german translation), but also doesn't provide any better working solution.
Created attachment 101752 [details] Diff from jwhois spec files (w/o IDN support) Okay, I reworked my patch and removed the ugly encoding check, because DENIC is also now queryable using ace, so maybe Bill from bug #121474 is happy, too? ;-)
Created attachment 101753 [details] jwhois-3.2.2-idn.patch
Does the "upstream currently doesn't accept my hack" also apply to attachment id=101753? If so, what is the reason?
For attachment #101753 [details] I didn't get any response by jwhois maintainers yet, but I think that (maybe better?) hack also isn't the perfect way as already described in the last two chapters of bug #132362 comment #3.
A sane rewrite of my patch was accepted by upstream today, from ChangeLog: * src/jwhois.c (main): Added support for libidn. (Robert Scheck) As my patch got part of upstream, I'll close this bug report now. But future jwhois rpm packages in Fedora Core containing IDN support should buildrequire libidn-devel to ensure working IDN support.