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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      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]));
        }
      }

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


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: