Re: [jdev] Case sensitivity in JIDs

2008-12-13 Thread Jonathan Schleifer

Am 12.12.2008 um 23:00 schrieb Alexander Gnauck:


gives you this output:
te...@server.com/Resource
te...@server.com/Resource



Why is ß replaced with ss? AFAIK, ß is allowed in the username part of  
the JID and with the new IDN standard which is currently in  
discussion, it would be even allowed in the domain.


--
Jonathan



PGP.sig
Description: This is a digitally signed message part
___
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Case sensitivity in JIDs

2008-12-13 Thread Alexander Gnauck
Jonathan Schleifer schrieb:
 Why is ß replaced with ss? AFAIK, ß is allowed in the username part of 
 the JID and with the new IDN standard which is currently in discussion, 
 it would be even allowed in the domain.

I have not updated my stringprep implementation for a while. Maybe I 
should get the new tables and generate new code ;-)

Alex

___
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Case sensitivity in JIDs

2008-12-12 Thread Alexander Gnauck
Arne Claassen schrieb:
 Hmmm... then stringprep in agsXMPP might be borked, since in it user  
 names stay in the case they were sent, which is where my troubles  
 started.

I don't use stringprep in all constructors in the jid class of agsXMPP 
because stringprep is a heavy process and needs lots of cpu power. When 
I receive a Jid from a server then I assume its correct and was prepared 
by the connecting client or on the server before.

The follwing code:
Jid jid =new Jid(te...@server.com/Resource);
Console.WriteLine(jid.ToString());

Jid jid2 = new Jid(TEßT,Server.Com,Resource);
Console.WriteLine(jid2.ToString());

gives you this output:
te...@server.com/Resource
te...@server.com/Resource

Regards,
Alex

___
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: jdev-unsubscr...@jabber.org
___


Re: [jdev] Case sensitivity in JIDs

2008-12-10 Thread Arne Claassen
Thanks for the info. Will adjust my logic accordingly.

arne

On Dec 10, 2008, at 11:40 AM, Peter Saint-Andre wrote:

 Peter Saint-Andre wrote:
 Arne Claassen wrote:
 I'm running into a problem with sending messages directly to  
 resources
 which I think is related to case sensitivity, so I wanted to make  
 sure
 I am understanding the spec right.

 Should [EMAIL PROTECTED]/Resource be the same as [EMAIL 
 PROTECTED]/resource?  
 (This
 is using ejabberd)

 No, those are different. ResourceIDs are case-insensitive whereas
 usernames and hosts are not. Basically. :) It's more complicated than
 that for Unicode characters, but that's the general idea.

 Er, sorry, typo. Resource IDs are case-sensitive whereas usernames and
 hostnames are not.

 /psa

 ___
 JDev mailing list
 FAQ: http://www.jabber.org/discussion-lists/jdev-faq
 Forum: http://www.jabberforum.org/forumdisplay.php?f=20
 Info: http://mail.jabber.org/mailman/listinfo/jdev
 Unsubscribe: [EMAIL PROTECTED]
 ___

___
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
___


Re: [jdev] Case sensitivity in JIDs

2008-12-10 Thread Remko Tronçon
 Thanks for the info. Will adjust my logic accordingly.

Actually, if you just stringprep every Jid (which you should do to be
correct anyway), then comparing Jids will be done correctly
automatically for you; no need for logic.

cheers,
Remko
___
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
___