Bug 117706

Summary: jwhois has no IDN support (umlaut domains)
Product: [Retired] Red Hat Raw Hide Reporter: Robert Scheck <redhat-bugzilla>
Component: jwhoisAssignee: Miloslav Trmač <mitr>
Status: CLOSED UPSTREAM QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0Keywords: MoveUpstream
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.i-d-n.net/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-20 14:09:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 121474    
Bug Blocks:    
Attachments:
Description Flags
jwhois spec file with IDN support
none
jwhois IDN patch
none
libidn spec file
none
Diff from jwhois spec files (w/o IDN support)
none
jwhois-3.2.2-idn.patch none

Description Robert Scheck 2004-03-07 19:07:56 UTC
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.

Comment 1 Robert Scheck 2004-04-07 22:02:22 UTC
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).

Comment 2 Robert Scheck 2004-04-07 22:04:02 UTC
Created attachment 99213 [details]
jwhois spec file with IDN support

Comment 3 Robert Scheck 2004-04-07 22:04:33 UTC
Created attachment 99214 [details]
jwhois IDN patch

Comment 4 Robert Scheck 2004-04-07 22:04:57 UTC
Created attachment 99215 [details]
libidn spec file

Comment 5 Robert Scheck 2004-06-22 06:07:01 UTC
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.

Comment 6 Robert Scheck 2004-07-09 15:04:40 UTC
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? ;-)

Comment 7 Robert Scheck 2004-07-09 15:05:32 UTC
Created attachment 101753 [details]
jwhois-3.2.2-idn.patch

Comment 8 Miloslav Trmač 2004-08-15 16:01:32 UTC
Does the "upstream currently doesn't accept my hack" also apply
to attachment id=101753?
If so, what is the reason?

Comment 9 Robert Scheck 2004-09-11 22:47:19 UTC
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.

Comment 10 Robert Scheck 2006-05-20 14:09:10 UTC
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.