There is a new branch 'tr46' (https://gitlab.com/rockdaboot/libidn2/tree/
tr46).

It introduces new flags for the lookup functions IDN2_TRANSITIONAL and 
IDN2_NONTRANSITIONAL (mutual exclusive).

IDN2_TRANSITIONAL enables the TR46 transitional process.
IDN2_NONTRANSITIONAL enables the TR46 non-transitional process.

Corresponding, the 'idn2' utility now has -T/--tr46t to enable transitional 
lookup and -N/--tr46nt to enable non-transitional lookup.

Example:
$ src/idn2 -T faß.de
fass.de

$ src/idn2 -N faß.de
xn--fa-hia.de

To show the TR46 mapping (upper->lowercase) in work:
$ src/idn2 Faß.de
idn2: lookup: string contains a disallowed character

$ src/idn2 -T Faß.de
fass.de

$ src/idn2 -N Faß.de
xn--fa-hia.de


Please review and comment.

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Help-libidn mailing list
Help-libidn@gnu.org
https://lists.gnu.org/mailman/listinfo/help-libidn

Reply via email to