KURL problem

Thiago Macieira thiago at kde.org
Tue Sep 27 12:27:55 BST 2005


Thiago Macieira wrote:
>Andras Mantia wrote:
>>make check fails, but for another case:
>>"kurltest: amantia.url() : checking 'http://?.foo' against expected
>>value 'http://xn--80a.foo'... KO !"
>
>? isn't supposed to be encoded to ACE/Punycode:
>$ echo \?.foo | idn -a --quiet
>?.foo

It occurred to me as an afterthought that the ? in Andras' email could be 
a character-replacement mark instead of a question mark.

Indeed it is:
$ echo xn--80a.foo | idn -u --quiet
а.foo
$ echo xn--80a.foo | idn -u --quiet | iconv -t utf16 | od -tx2
0000000 feff 0430 002e 0066 006f 006f 000a

U+0430 is CYRILLIC SMALL LETTER A

Still, the following applies:

>Besides, our recent fixes for phishing with IDN introduced dependency on
>the last part of the URL: "foo" is not one of the TLDs allowed to have
> an IDN. You have to switch to a TLD like "de".
>
>So the test will fail always in its current form.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

2. Tó cennan his weorc gearu, ymbe se circolwyrde, wearð se cægbord and se 
leohtspeccabord, and þa mýs cómon lator. On þone dæg, he hine reste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050927/50ad6f05/attachment.sig>


More information about the kde-core-devel mailing list