Skip to content

Discourage APIs locale-dependent APIs like String.to{Lower,Upper}Case #3809

@cushon

Description

@cushon

Inspired by bazelbuild/bazel#17687

Java's String#to{Lower,Upper}Case() is locale-dependent, which can
lead to unexpected results in locales with special case mappings in the
ASCII range (e.g. in a Turkish locale, a capital ASCII I lowercases to
a non-ASCII variant of i).

We have an internal refaster template that suggests com.google.common.base.Ascii, so we'd get this for free from #649

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions