x/text/secure/precis: Bidi rule is applied incorrectly #17383
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Currently in PRECIS profiles that use the bidi rule (RFC 5893 §2) such as the username profiles, the bidi rule is always applied regardless of whether RTL characters exist in the input string. However, RFC 7613 §3.3.2 seems to state that the bidi rule should not be applied unless RTL characters exist in the string:
This wording is a bit confusing (I started looking into this when someone asked on the IETF list for clarification of the above paragraph), but the recent draft-ietf-precis-7613bis-03 clarifies the language:
However, I think we may be doing it right and changing it to match the RFC is not entirely advisable because it means usernames that include RTL characters are not consistent with usernames that do not (eg. "!Username" is valid, but "!User<RTLChar>name" is not valid because the bidi rule does not allow punctuation [category NO] at the beginning of a label). I've written to the working group to see if this should be changed in the draft to match our implementation. I'm not sure if it would be better to go ahead and update to be compliant with the current RFC, or if it would be better to wait and see if the rule changes (or if I'm just completely wrong; someone with more knowledge about this than me will likely reply on the list and explain why it doesn't make sense to apply the bidi rule all the time).
/cc @mpvl @nigeltao
The text was updated successfully, but these errors were encountered: