In a previous thread, we (mostly John) discussed the relative
desirability of using toLower() vs. toCaseFold(); see for instance:
https://www.ietf.org/mail-archive/web/precis/current/msg01158.html
https://www.ietf.org/mail-archive/web/precis/current/msg01159.html
I suggested that we add some text about this to 7564bis. Here is a
proposed paragraph for insertion in §5.2.3 ("Case-Mapping Rule"):
The Unicode toCaseFold() operation defined by the Unicode Default
Case Folding algorithm is most appropriate when an application needs
to compare two strings. When an application merely wishes to convert
uppercase and titlecase code points to the lowercase equivalents
while preserving lowercase code points, the Unicode toLower()
operation is more appropriate and is less likely to violate the
"Principle of Least Astonishment". Therefore, application developers
are advised to carefully consider whether they truly need to use the
toCaseFold() operation in a given situation, or whether the toLower()
operation would be more appropriate than the toCaseFold() operation.
Suggestions for improvement are welcome, especially from John. (E.g., we
might want to more explicitly call out comparison vs. other contexts in
the normative text elsewhere in §5.2.3).
Thanks,
Peter
_______________________________________________
precis mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/precis