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

[classlib][luni] Cannot pick up proper user.language and user.country properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0M14
    • 6.0M3, 5.0M15
    • Classlib
    • None
    • Patch Available

    Description

      Test with below test case:

      public class Test {

      public static void main(String[] args)

      { String lang = System.getProperty("user.language"); String country = System.getProperty("user.country"); System.out.println("user.language=" + lang); System.out.println("user.contry=" + country); }

      }

      it always print out
      user.language=en
      user.contry=US
      even if system language and region are set to other values.

      Attachments

        1. Harmony-6589.diff
          1 kB
          Xiao Shu

        Activity

          People

            odeakin Oliver Deakin
            xiaoshu Xiao Shu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: