Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8049038

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 8u20
    • core-libs
    • None
    • 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")

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

              Created:
              Updated:
              Resolved: