Subject: bug#51954: 29.0.50; puny-encode doesn't normalize

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 19 Nov 2021 07:45:36 +0100

Eli Zaretskii <[email-masked]> writes:

>> (puny-encode-string (ucs-normalize-NFKC-string "Bä.com"))
>> => "xn--B.com-gra"
>
> NFKC or NFC?

NFC.  I've now expanded on the doc strings of these functions, removed
the ;;;###autoloads since they're not actually used, and added two new
string-glyph-* functions (pointing to the NFC functions) for greater
discoverability.

>> So I think puny-encode-string should do that first, if I'm reading TR36
>> right.
>
> Agreed.

Now done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no