In turkish locale, String.equalsIgnoreCase() returns "true" for character \u0130 and \u0131.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 8u20
    • Component/s: core-libs
    • None
    • Environment:

      jdk1.8.0_20 b20

      In Turkish, \u0130(İ) and \u0131(ı) are different characters, when using String.equalsIgnoreCase(), it should return false.

      In following cases, it should all return false, but it returns true: (tested with 1.8.0_20 b20)

      "\u0130".equalsIgnoreCase("\u0049")
      "\u0069".equalsIgnoreCase("\u0131")
      "\u0130".equalsIgnoreCase("\u0131")
      "\u0069".equalsIgnoreCase("\u0049")

            Assignee:
            Naoto Sato
            Reporter:
            Jenny Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: