Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4499580

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.0
    • 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: