james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hontvari Jozsef <hontv...@solware.com>
Subject toUpperCase() is wrong - Be aware of i18n
Date Tue, 06 Aug 2002 10:24:01 GMT
It just occured me that in the recent patches I saw toUpperCase() calls -
that is without an explicit specification of locale.

Relying on the default locale is almost always incorrect in the case of a
server application.
If you look at the toUpperCase doc in jdk1.4, they give an example showing
how relying on the default locale leads to an incorrect result on a server
with Turkish locale.

Because the SMTP rfc specifies that the commands are in the US-ASCII
charset, this one is a correct call:

To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>

View raw message