This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170777 - I18N: generated jar file becomes "____.jar" when project name is japanese
Summary: I18N: generated jar file becomes "____.jar" when project name is japanese
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-08-24 02:27 UTC by Masaki Katakai
Modified: 2009-09-22 05:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-08-24 02:27:37 UTC
Product Version: NetBeans IDE Dev (Build 200908210201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb)

It's happening on 6.5 too.

1. Create a Java project with Japanese name
2. Build

Created dir: /export/home/katakai/NetBeansProjects/かたかい/dist
Building jar: /export/home/katakai/NetBeansProjects/かたかい/dist/____.jar
Not copying the libraries.

Target jar file becomes "____.jar".

It looks NetBeans defines dist.jar in nbproject/project.properties as below,

dist.jar=${dist.dir}/____.jar

It should be for example

dist.jar=${dist.dir}/\u304b\u305f\u304b\u3044.jar

Non-ascii characters need to be converted to unicode ascii.
Comment 1 Jesse Glick 2009-09-16 15:20:45 UTC
If you don't like what dist.jar is set to you can simply edit it => not P2.

We sanitize project names before using them in this context lest they contain metacharacters that might be interpreted
by Ant, or path separators, or other characters which might cause trouble in filenames. Currently we only permit
[-._a-zA-Z0-9] but probably we should instead use a negative character class, e.g. [$\\/] plus Unicode control
characters and maybe some others that could be problematic, leaving most Unicode characters untouched.
Comment 2 Tomas Zezula 2009-09-16 17:03:51 UTC
Fixed in jet-main: 665f4d1e49fe
Comment 3 Quality Engineering 2009-09-18 22:39:30 UTC
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/665f4d1e49fe
User: Tomas Zezula <tzezula@netbeans.org>
Log: #170777:I18N: generated jar file becomes "____.jar" when project name is japanese
Comment 4 Masaki Katakai 2009-09-22 05:03:45 UTC
Thank you very much!

Verified on 200909211401.