Re: RFR: 8282279: Interpret case-insensitive string locale independently

2022-02-23 Thread Xue-Lei Andrew Fan
On Wed, 23 Feb 2022 14:51:45 GMT, Roger Riggs wrote: > Locale.ROOT is preferred for locale independent uppercase and lowercase(). Yes, as the Locale.English has been used a lot. It may worthy another enhancement to use Locale.ROOT in a separate PR. > BTW, for the strings written to the SSLLog

Re: RFR: 8282279: Interpret case-insensitive string locale independently

2022-02-23 Thread Roger Riggs
On Wed, 23 Feb 2022 00:05:58 GMT, Xue-Lei Andrew Fan wrote: > The String.toUpperCase() or String.toLowerCase() method is locale sensitive, > and may produce unexpected results if used for strings that are intended to > be interpreted locale independently. The use of the two methods had been >

Re: RFR: 8282279: Interpret case-insensitive string locale independently

2022-02-23 Thread Weijun Wang
On Wed, 23 Feb 2022 00:05:58 GMT, Xue-Lei Andrew Fan wrote: > The String.toUpperCase() or String.toLowerCase() method is locale sensitive, > and may produce unexpected results if used for strings that are intended to > be interpreted locale independently. The use of the two methods had been >

Re: RFR: 8282279: Interpret case-insensitive string locale independently

2022-02-23 Thread Bernd Eckenfels
locale instead of ENGLISH? Gruss Bernd -- http://bernd.eckenfels.net Von: security-dev im Auftrag von Xue-Lei Andrew Fan Gesendet: Wednesday, February 23, 2022 1:12:16 AM An: security-dev@openjdk.java.net Betreff: RFR: 8282279: Interpret case-insensitive string

RFR: 8282279: Interpret case-insensitive string locale independently

2022-02-22 Thread Xue-Lei Andrew Fan
The String.toUpperCase() or String.toLowerCase() method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. The use of the two methods had been cleaned before, but there are a few new introduced laterly. See http