no, anything with "--" is reserved. See Definitions RFC.<div><br></div><div>v</div><div><br><br><div class="gmail_quote">On Wed, Mar 9, 2011 at 11:36 AM, Simon Josefsson <span dir="ltr"><<a href="mailto:simon@josefsson.org">simon@josefsson.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Andrew Sullivan <<a href="mailto:ajs@shinkuro.com">ajs@shinkuro.com</a>> writes:<br>
<br>
> On Tue, Mar 08, 2011 at 01:02:14AM +0100, Simon Josefsson wrote:<br>
>> The next-to-last part of IDNA2008-lookup is section 5.5 of RFC 5891:<br>
>><br>
>>    The string that has now been validated for lookup is converted to ACE<br>
>>    form by applying the Punycode algorithm to the string and then adding<br>
>>    the ACE prefix ("xn--").<br>
>><br>
>> Consider an IDNA2008-lookup input label of "foo".  The above appear to<br>
>> say that this string should be punycode encoded, which seems wrong.<br>
><br>
> Sections 5.2 and 5.3 suggest that the label should be "in Unicode" and<br>
> need to be a putative U-label.  It is unfortunate that the text<br>
> doesn't explicitly here say that the algorithm already doesn't apply<br>
> to NR-LDH labels, but I think that's correct.  So you shouldn't need<br>
> to run "foo" through punycode because you didn't take that branch: you<br>
> can tell before you get to the IDNA2008 lookup rules that it's an<br>
> NR-LDH label, so it won't be processed.<br>
<br>
</div>Thanks -- indeed, making it explicit which sub-sections of section 5<br>
applies to all labels or just (putative) U-labels would have helped.<br>
<br>
To verify my understanding: the label "ab--cd" is permitted by IDNA2008<br>
despite it having "--" in the third and fourth characater positions?<br>
That would be because section 5.4 only applies to non-ascii labels.<br>
<font color="#888888"><br>
/Simon<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Idna-update mailing list<br>
<a href="mailto:Idna-update@alvestrand.no">Idna-update@alvestrand.no</a><br>
<a href="http://www.alvestrand.no/mailman/listinfo/idna-update" target="_blank">http://www.alvestrand.no/mailman/listinfo/idna-update</a><br>
</div></div></blockquote></div><br></div>