MIME-Version: 1.0 In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF29 (Linux)/8.0.6_GA_5922) References: <194463002.11114099.1402641552531.JavaMail.zimbra@redhat.com> <20140613072226.GA72946@isc.org> <20140613072424.GB72946@isc.org> Message-ID: <724185247.11127829.1402647071235.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8 X-RT-Original-Encoding: utf-8 Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id 2262E2D20571 for ; Fri, 13 Jun 2014 08:12:13 +0000 (UTC) Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) by mx.pao1.isc.org (Postfix) with ESMTP id 22AD43493D0 for ; Fri, 13 Jun 2014 08:12:11 +0000 (UTC) (envelope-from thozza@redhat.com) Received: from zmail19.collab.prod.int.phx2.redhat.com (zmail19.collab.prod.int.phx2.redhat.com [10.5.83.22]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5D8BBd1005058 for ; Fri, 13 Jun 2014 04:11:11 -0400 Delivered-To: bind-suggest@bugs.isc.org Subject: Re: [ISC-Bugs #36101] IDN support in host/dig/nslookup using GNU libidn(2) Return-Path: X-Original-To: bind-suggest@bugs.isc.org Thread-Index: OX/xGa4hIMromD+AwvhS8IvbH9lWRQ== Date: Fri, 13 Jun 2014 04:11:11 -0400 (EDT) Thread-Topic: IDN support in host/dig/nslookup using GNU libidn(2) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org X-Originating-Ip: [10.5.82.11] To: bind-suggest@isc.org Content-Transfer-Encoding: 7bit From: Tomas Hozza RT-Message-ID: Content-Length: 1539 ----- Original Message ----- > > With libidn2, the LANG trick for disabling IDN mentioned in the man page > > (LANG=langauage[_terrotory].ASCII) doesn't seem to be working as described; > > I'm not sure yet why not. Can you try it out? > > CHARSET=ASCII not working with libidn, either. In both cases I get: > > dig: convert textname to UTF-8: failure For the disable IDN I deducted it from the original patch from Adam Tkac for libidn we had in Fedora. For libidn it can be tested as follows: $ CHARSET=ASCII dig axfr . @k.root-servers.net | grep '^xn--' | wc -l 576 $ dig axfr . @k.root-servers.net | grep '^xn--' | wc -l 0 It just make dig to display the output in punycode rather than in the international format. For libidn2 I was deducting the "workaround" based on the libidn doc [1] but for libidn2 [2] (look for Environment Variables part). However I can see now that it does not work for libidn2. Thinking more about it, the functions that are used for libidn2 compared to libidn don't to the IDN translation when producing output. [1] http://www.gnu.org/software/libidn/manual/libidn.html#Invoking-idn [2] http://www.gnu.org/software/libidn/libidn2/manual/libidn2.html#Invoking-idn2 If you don't have any hint I'll have to investigate it more thoroughly to be able to fix the man page or source accordingly. Thanks for finding this and sorry for the mistake. Regards, -- Tomas Hozza Software Engineer - EMEA ENG Developer Experience PGP: 1D9F3C2D Red Hat Inc. http://cz.redhat.com