[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [idn] amending [IDNA]?
A mistake is in previous idn-label. This one shall
replace it.
Liana
idn-label(input, tag-file, input-std, zonefile, idn-name)
{
tag = find-tag(input, tag-file, input-std);
switch (tag)
{
case USASCII : return(input); /* a legal DNS string*/
case NIL: idn-name=
uni-compress(input, UNICODE, DEFAULT-ACE);
return strcat(DEFAULT-ACE, idn-name);
default:
idn-folding(input, input-std, tag, USASCII, output-list);
if idn-label-length(output-list) >= MaxLabelLength
{
record-label(input, output-list, zonefile, tag);
idn-truncate-label(output-list, tag);
}
idn-label-concat(output-list, idn-name);
return strcat(tag, idn-name);
}