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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.0, 1.8.1
    • Fix Version/s: 1.9.0, 1.8.2
    • Component/s: parquet-mr
    • Labels:
      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

            • Assignee:
              proflin Liwei Lin(Inactive)
              Reporter:
              proflin Liwei Lin(Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: