IDNA2008 test vectors

Mark Davis ☕ mark at
Thu Jan 27 03:12:25 CET 2011


*— Il meglio è l’inimico del bene —*

On Tue, Jan 25, 2011 at 14:37, Simon Josefsson <simon at> wrote:

> Mark Davis ☕ <mark at> writes:
> > For the next version of UTS46, the UTC is introducing additional fields
> in
> > its test files that indicate whether the strings are valid in IDNA2008,
> so
> > you could take a look at those (currently in draft state).
> >
> >
> >
> > The draft test file is at
> >
> >
> > You would skip the lines starting with T, since those are only relevant
> for
> > transitional implementations. If you use the files and find any issues,
> let
> > me know and I can funnel the feedback back to the UTC.
> Thank you, I'm now going through these against my implementation.
> However, shouldn't I also ignore the toUnicode column for all B tests?

The B lines are valid for both T and N, so you should include them.

> That is, for a IDNA2008 implementation with no mapping support, the
> useful test vectors are the toASCII columns of all lines, and all

You would ignore any line with an error in the toUnicode column, or that has
T in the Type column.

With no mapping, you wouldn't test the Source column value. What you'd do is
see that the toAscii and to toUnicode values mapped back and forth.
(However, you would _use_ the value in the Source column if either were

> columns of the N lines.
> /Simon
> _______________________________________________
> Idna-update mailing list
> Idna-update at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Idna-update mailing list