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] Commented: (DERBY-4492) Localized help message from derbyrun.jar has wrong encoding
Date Wed, 23 Dec 2009 19:44:29 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794187#action_12794187

Knut Anders Hatlen commented on DERBY-4492:

This seems to affect more messages, not only the ones used by derbyrun.jar:

ij> connect 'jdbc:derby:db;territory=de_DE;create=true';
ij> create table t(x int);
0 rows inserted/updated/deleted
ij> alter table t add constraint c primary key (x);
ERROR 42831: 'X' kann Nullwerte enthalten und daher keine Spalte eines Primärschlüssels

"Prim√§rschl√ºssels" should have been "Primärschlüssels".

It looks like all messages touched by revision 793870 (DERBY-4221) have the wrong escape sequence
for non-ascii characters. At least it looks so for the languages that I have some minimal
knowledge about.

> 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:,
>            Reporter: Knut Anders Hatlen
> 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.

View raw message