benoitc / erlang-idna

Erlang IDNA lib
MIT License
43 stars 29 forks source link

IDNA 2008 compliance #24

Closed zp-sd closed 6 years ago

zp-sd commented 6 years ago

1) Implement label validation as stated in https://tools.ietf.org/html/rfc5891#section-4.2

2) Based on https://tools.ietf.org/html/rfc5891#section-4.1

a string enters the IDNA registration process as
described in this specification, it MUST be in Unicode and in
Normalization Form C

However the code uses unicode_util_compat:nfkc.

3) See also UTS #46, especially http://unicode.org/reports/tr46/#Processing.


Maybe support parameters as ICU 60.2 does (http://icu-project.org/apiref/icu4c/uidna_8h.html), This lib was used in https://github.com/benoitc/erlang-idna-nif.

benoitc commented 6 years ago

68f03ab9e89e276e3f657902a6bc8f03e014423c handle IDNA mapping and options based on http://unicode.org/reports/tr46/#Processing. .

Current tests pass.

benoitc commented 6 years ago

I started to add the label validation.

The following need to be validated according to rfc5891 :