db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4492) Localized help message from derbyrun.jar has wrong encoding
Date Fri, 15 Jan 2010 09:55:54 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-4492:
--------------------------------------

    Attachment: backport-10.4.diff
                backport-10.4.stat

Here's a patch that fixes the encoding on 10.4. To create this patch I followed these steps:

1) Ran a script on the original localization patch that was applied to 10.4 (revision 682388)
and replaced the broken escape sequences with the correct ones (e.g., \u00C3\u00A4 -> \u00E4)

2) Applied the modified patch to sandbox with the 10.4 branch on revision 682387, which is
right before the original 10.4 localization patch was checked in

3) Updated the sandbox to revision 682388, resolving all conflicts by choosing my changes

4) Updated the sandbox all the way to head of 10.4

5) svn diff > backport-10.4.diff

All the regression tests ran cleanly (well, almost... one failure in derbyall because of DERBY-4418).

> Localized help message from derbyrun.jar has wrong encoding
> -----------------------------------------------------------
>
>                 Key: DERBY-4492
>                 URL: https://issues.apache.org/jira/browse/DERBY-4492
>             Project: Derby
>          Issue Type: Bug
>          Components: Localization, Tools
>    Affects Versions: 10.4.2.0, 10.5.2.0, 10.5.3.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.5.3.1, 10.6.0.0
>
>         Attachments: backport-10.4.diff, backport-10.4.stat, Escape.java, Escape.java,
Escape.java, handback.zip, unicode_escape.diff, unicode_escape_v2.diff
>
>
> 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
> .
> .
> .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message