Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-430

Change to use Locale parameterized version of String.toUpperCase()/toLowerCase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.0, 1.8.1
    • 1.9.0, 1.8.2
    • parquet-mr
    • None

    Description

      A String is being converted to upper or lowercase, using the platform's default encoding. This may result in improper conversions when used with international characters.

      For instance, "TITLE".toLowerCase() in a Turkish locale returns "tıtle", where 'ı' – without a dot – is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, we'd better use toLowerCase(Locale.ENGLISH).

      For more information on this, please see:

      This ticket proposes to change our use of String.toUpperCase()/toLowerCase() to String.toUpperCase(Locale.ENGLISH)/toLowerCase(Locale.ENGLISH)

      Attachments

        Activity

          People

            proflin Liwei Lin(Inactive)
            proflin Liwei Lin(Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: