mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-15 03:11:54 -07:00
Further IDNA tweaks
(idna-encode-string): Make idna-encode-string safe for non-ASCII use.
This commit is contained in:
parent
bd892f0332
commit
1f591ca64f
1 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@
|
|||
(let ((ascii (seq-filter (lambda (char)
|
||||
(< char 128))
|
||||
string)))
|
||||
(concat "xn--" ascii "-" (idna-encode-complex (length ascii) string))))
|
||||
(if (= (length ascii) (length string))
|
||||
string
|
||||
(concat "xn--" ascii "-" (idna-encode-complex (length ascii) string)))))
|
||||
|
||||
(defconst idna-initial-n 128)
|
||||
(defconst idna-initial-bias 72)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue