Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5465

[classlib][util] Locale(String, String, String) capitalize third parameter (variant)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0M5
    • Classlib
    • None
    • All

    Description

      The following test passes on RI, but fails on Harmony:
      -------------------------
      import java.util.Locale;

      class LocaleVariant {
      public static void main(String[] args) {
      Locale p = new Locale("en","GB", "Custom_LNX");
      if(p.getVariant().equals("Custom_LNX"))

      { System.out.println("PASSED"); }

      else

      { System.out.println("FAILED: Custom_LNX != " + p.getVariant()); }

      }
      }
      -------------------------

      Attachments

        Activity

          People

            tony.wu Tony Wu
            mcfirst Pavel Pervov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: