From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51954: 29.0.50; puny-encode doesn't normalize Date: Thu, 18 Nov 2021 18:06:47 +0100 Message-ID: <87r1bdz93s.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5759"; mail-complaints-to="usenet@ciao.gmane.io" To: 51954@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 18 18:10:46 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnkvu-0001FN-QF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 18:10:46 +0100 Original-Received: from localhost ([::1]:37858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnkvt-0004Zo-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Nov 2021 12:10:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnktG-0002NS-MV for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnktG-0004fF-E0 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnktG-0005dI-47 for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Nov 2021 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51954 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163725522721562 (code B ref -1); Thu, 18 Nov 2021 17:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Nov 2021 17:07:07 +0000 Original-Received: from localhost ([127.0.0.1]:37045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnksI-0005bd-Sd for submit@debbugs.gnu.org; Thu, 18 Nov 2021 12:07:07 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnksG-0005bE-E2 for submit@debbugs.gnu.org; Thu, 18 Nov 2021 12:07:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnksG-00011r-AT for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:07:00 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=40708 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnksE-0004ax-6m for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 12:07:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ubigBQxhwT1/zdDS4F6xCAW/B2Ds6Fk+jsUI8GDh8+Q=; b=OIkaEG9qufGun/LDQKJvCX43NM kdBA3odRzUUl67pKl30dKqQy/NGtUaYMGFrXkCAcexoti5P9rF/jGk2jMhllLBJwRrvyq+Cu+XZTG 2VV3Z4DyIh+sKh0qOj3I6bx8Hkk+U/vVNRvOIX0VNZH5CIxJGUizhUT1gcMEtLZ9FA2M=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnks9-0002W0-1S for bug-gnu-emacs@gnu.org; Thu, 18 Nov 2021 18:06:55 +0100 X-Now-Playing: Bridget St John's _Ask Me No Questions_: "Like Never Before" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220328 Archived-At: I'm reading https://www.unicode.org/reports/tr36/ which says that IDNA should normalise the strings before encoding (and lowercase, too?) This seems to agree: https://en.wikipedia.org/wiki/Punycode But: (puny-encode-string "Ba=CC=88.com") =3D> "xn--Ba.com-xyd" (puny-encode-string (ucs-normalize-NFKC-string "Ba=CC=88.com")) =3D> "xn--B.com-gra" So I think puny-encode-string should do that first, if I'm reading TR36 right. In GNU Emacs 29.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, = cairo version 1.16.0) of 2021-11-18 built on xo Repository revision: 7a1e5ac8b29b731e89cc9d5b498e31bd90840b9b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux bookworm/sid Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no