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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0M14
    • Fix Version/s: 6.0M3, 5.0M15
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: