(process) Decode system error messages (win)

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: core-libs
    • generic
    • windows

      OPERATING SYSTEM(S)
      -------------------
      Testcase for non-English Windows Vista/2008.
      May occur on earlier Windows releases as well (with a suitable testcase).

      FULL JDK VERSION(S)
      -------------------
      All Java 6 releases.

      DESCRIPTION:
      ------------
      Only ASCII characters are getting stored and printed by Java 6 for an error text message returned by the Windows 2008 operating system even though double-byte language systems are being used.

      Steps to reproduce:
      ------------------
      1. Login using a regular Administrator group user account (but not the
         built-in Administrator account).
      2. Run the GarbledText Java program to hit the expected Windows 740
         error.
      3. Note the missing characters in the error message.

      ============================================================
      import java.io.*;
      class GarbledText {
          public static void main (String args[]) {
              try {
                  Process process = Runtime.getRuntime().exec("mmc.exe");
              } catch (Exception e) {
                  System.err.println(e);
                  System.err.println("\n2");

                  System.err.println(e.getMessage());
                  System.err.println("\n3");
                  System.err.println(e.getLocalizedMessage());
                  System.err.println("\n4");
                  System.err.println(e.getCause());
                  System.err.println("\n5");
                  e.printStackTrace();
              }
          }
      }
      ============================================================

      Observed result (on a Polish system):

      740: ??dana operacja wymaga podniesienia uprawni

      Expected result: Characters should be displayed correctly.

      This issue seems to share some symptoms with the Unix CR 6600199. It may or may not be related to that issue.

            Assignee:
            Alexey Utkin (Inactive)
            Reporter:
            David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: