System.getProperty("user.region"); returns null.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs



      Name: ddT132432 Date: 09/04/2001


      Microsoft(R) Windows 98
         (C)Copyright Microsoft Corp 1981-1998.

      C:\WINDOWS>java -version
      java version "1.4.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
      Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

      C:\WINDOWS>


      System.getProperty("user.region"); returns null.

      The following source was copied from a previous bug report.
      --- start of code ---
      import java.util.Locale;

      public class LocaleTest { static public void main(String[] args) {
      Locale defLoc = Locale.getDefault();
      String dLang = defLoc.getLanguage();
      String dRegion = defLoc.getCountry();

      System.out.println("Default Locale = " + dLang +"_" + dRegion);

      String language = System.getProperty("user.language"); //, "en");
      String region = System.getProperty("user.region");//, "US");

      System.out.println("Specified Locale = "+language+"_"+region);
      } }
      // --- source code end --- (Bug ID 4152725)
      (Review ID: 131264)
      ======================================================================

            Assignee:
            Norbert Lindenberg (Inactive)
            Reporter:
            Daniel Dresser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: