[
https://issues.apache.org/jira/browse/LANG-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926722#comment-16926722
]
Gary Gregory commented on LANG-1453:
------------------------------------
Note that this is related to the issues that calling toLowerCase() and
toUpperCase() without using a target Locale leads to unexpected results in some
cases, please see
[https://garygregory.wordpress.com/2015/11/03/java-lowercase-conversion-turkey/]
I think I will create a PR to help with this kind of conversion and add
null-safe APIs as {{StringUtils.toRootLowerCase(String) and
}}{{StringUtils.toRootUpperCase(String)}}{{}}
> StringUtils.removeIgnoreCase("İa", "a") throws IndexOutOfBoundsException
> ------------------------------------------------------------------------
>
> Key: LANG-1453
> URL: https://issues.apache.org/jira/browse/LANG-1453
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.text.*
> Affects Versions: 3.8.1
> Reporter: Thomas Neerup
> Priority: Critical
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> *try* {
> String s = StringUtils._removeIgnoreCase_("İa", "a");
> } *catch* (Exception e) {
> e.printStackTrace();
> }
> output
> java.lang.IndexOutOfBoundsException: start 3, end 2, s.length() 2
> at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:539)
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)