[Standards] XEP-0392: Consistent Color Generation - Issues using JID

Edwin Mons jsf at edwinm.ik.nu
Fri Dec 8 15:39:35 UTC 2017


On 08-12-17 16:03, Sam Whited wrote:
> On Fri, Dec 8, 2017, at 08:17, Marcel Waldvogel wrote:
>> As JIDs are supposed to be case-preserving, I would expect several
>> implementations do not downcase them first.
> This is incorrect. Per RFC 7622 the localpart of a JID uses the
> UsernameCaseMapped profile of PRECIS defined in RFC 8265 which requires
> use of the Unicode toLower operation, the domainpart of course follows
> normal IDNA2008 rules, and the resourcepart uses the Nickname profile of
> PRECIS defined in RFC 8266 which also uses toLower.

The last bit isn't exactly true.  A resourcepart is an OpaqueString
profile of the FreeformClass.  7622 § 3.4.1 suggests that applications
might use a narrower definition, but that's not enforced by either
XEP-0045 or XEP-0392, is it?

Edwin




More information about the Standards mailing list