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. handback.zip
        357 kB
        Rick Hillegas
      2. Escape.java
        2 kB
        Knut Anders Hatlen
      3. unicode_escape.diff
        1.15 MB
        Knut Anders Hatlen
      4. Escape.java
        2 kB
        Knut Anders Hatlen
      5. Escape.java
        5 kB
        Knut Anders Hatlen
      6. unicode_escape_v2.diff
        883 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

          Gavin made changes -
          Workflow jira [ 12485436 ] Default workflow, editable Closed status [ 12797375 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-4969 [ DERBY-4969 ]
          Knut Anders Hatlen made changes -
          Link This issue is duplicated by DERBY-4643 [ DERBY-4643 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Fix Version/s 10.4.2.1 [ 12313401 ]
          Resolution Fixed [ 1 ]
          Knut Anders Hatlen made changes -
          Attachment backport-10.4.stat [ 12430382 ]
          Attachment backport-10.4.diff [ 12430383 ]
          Knut Anders Hatlen made changes -
          Affects Version/s 10.4.2.0 [ 12313345 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.5.3.1 [ 12314182 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.6.0.0 [ 12313727 ]
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Issue & fix info [Patch Available]
          Knut Anders Hatlen made changes -
          Attachment Escape.java [ 12429329 ]
          Attachment unicode_escape_v2.diff [ 12429330 ]
          Knut Anders Hatlen made changes -
          Attachment Escape.java [ 12429209 ]
          Knut Anders Hatlen made changes -
          Attachment Escape.java [ 12428927 ]
          Attachment unicode_escape.diff [ 12428928 ]
          Knut Anders Hatlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Knut Anders Hatlen made changes -
          Assignee Knut Anders Hatlen [ knutanders ]
          Rick Hillegas made changes -
          Attachment handback.zip [ 12428917 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-4221 [ DERBY-4221 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-3804 [ DERBY-3804 ]
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Bug behavior facts [Regression]
          Affects Version/s 10.5.2.0 [ 12314116 ]
          Knut Anders Hatlen created issue -

            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