nolaviz commented on PR #87: URL: https://github.com/apache/freemarker/pull/87#issuecomment-1381702733
The collator used here (`Environment.getCollator()`) is always initialized to `Collator.getInstance(getLocale())`; OpenJDK's `CollatorProviderImpl` disables decomposition on the collators it returns (https://github.com/openjdk/jdk/blob/be8e6d05db2f623626506e64a2fb7caf755d5d06/src/java.base/share/classes/sun/util/locale/provider/CollatorProviderImpl.java#L122). This means - for the equality case - we can expect the collator to always fall back to `String.compareTo` (https://github.com/openjdk/jdk/blob/be8e6d05db2f623626506e64a2fb7caf755d5d06/src/java.base/share/classes/java/text/RuleBasedCollator.java#L557). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
