Derby
  1. Derby
  2. DERBY-4492

Localized help message from derbyrun.jar has wrong encoding

    Details

    • Bug behavior facts:
      Regression

      Description

      When I change the locale to one of the languages for which we have localized tools messages, either by changing the system locale or by setting the derby.ui.locale property, the output from derbyrun.jar is garbled:

      $ java -Dderby.ui.locale=zh_TW -jar derbyrun.jar
      用法:
      java -jar derbyrun.jar ij [-p propertiesfile] [sql script]
      java -jar derbyrun.jar sysinfo [-cp ...] [-cp help]
      java -jar derbyrun.jar dblook [args] (或是不加引數以查看用法)
      java -jar derbyrun.jar server [args] (或是不加引數以查看用法)
      $ java -Dderby.ui.locale=de_DE -jar derbyrun.jar
      Syntax:
      java -jar derbyrun.jar ij [-p Merkmaldatei] [sql Script]
      java -jar derbyrun.jar sysinfo [-cp ...] [-cp help]
      java -jar derbyrun.jar dblook [Argumente] (oder ohne Argumente für Syntaxinformationen)
      java -jar derbyrun.jar server [Argumente] (oder ohne Argumente für Syntaxinformationen)

      Only the help message from derbyrun.jar is garbled. The other tools appear to produce fine output, even when invoked via derbyrun.jar:

      $ java -Dderby.ui.locale=zh_TW -jar derbyrun.jar sysinfo
      ------------------ Java 資訊 ------------------
      Java 版本: 1.6.0_17
      Java 供應商: Sun Microsystems Inc.
      Java 首頁: /usr/jdk/instances/jdk1.6.0/jre
      Java 類別路徑: derbyrun.jar
      OS 名稱: SunOS
      .
      .
      .

      1. unicode_escape.diff
        1.15 MB
        Knut Anders Hatlen
      2. unicode_escape_v2.diff
        883 kB
        Knut Anders Hatlen
      3. handback.zip
        357 kB
        Rick Hillegas
      4. Escape.java
        2 kB
        Knut Anders Hatlen
      5. Escape.java
        2 kB
        Knut Anders Hatlen
      6. Escape.java
        5 kB
        Knut Anders Hatlen
      7. backport-10.4.stat
        0.9 kB
        Knut Anders Hatlen
      8. backport-10.4.diff
        286 kB
        Knut Anders Hatlen

        Issue Links

          Activity

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development