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

System.getProperty() can't get Shift-JIS property name from command line.

XMLWordPrintable

    • sparc
    • solaris_2.6

      On Solaris 2.6 with ja_JP.PCK locale,
      System.getProperty() can't get the property named by Shift-JIS characters from command line.

      Please compile following program.
      And run commands below.

      %echo "Expect: Š¿Žš‚Ü‚´‚è123"
      %java -Dmy.prop=Š¿Žš‚Ü‚´‚è123 SysProp my.prop
      %echo "Expect: Š¿Žš‚Ü‚´‚è123"
      %java -DŠ¿Žšprop=Š¿Žš‚Ü‚´‚è123 SysProp Š¿Žšprop

      Shift-JIS property name is not recognized.


      ====== SysProp.java =============================================================
      public class SysProp {
        public static void main(String args[]) {
          System.out.println(System.getProperty(args[0]));
        }
      }

      =================================================================================


            apalanissunw Anand Palaniswamy (Inactive)
            eishidasunw Etsuko Ishida (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: