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 42548 - I18N - Double-byte characters are not supported in manifest file
Summary: I18N - Double-byte characters are not supported in manifest file
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-04-28 04:14 UTC by agctools
Modified: 2008-12-22 14:44 UTC (History)
2 users (show)

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 agctools 2004-04-28 04:14:46 UTC
Steps:
1. launch multilanguage version of NetBeans 3.6 on
Solaris x86 with Chinese locale.
2. Create .java program whose main class name is
in Chinese, or whose package name is in Chinese. 
* Make sure the program can be compiled and
executed correctly.
3. Create JAR Recipe; and add the .java created in
step 2 to it.
4. Add Main-Class to the manifest file and
generate.

Result:
1. In step 4, after press Generate button, the
Main-Class entry containing Chinese characters
disappears right away.
2. If choose OK and execute the JAR Recipe, an
error will appear: "Fail to load Main-Class
manifest attribute from ...".
Comment 1 agctools 2004-04-28 23:43:32 UTC
It seem reproducable in C locale and workaround is to
create a local manifest file and the load this file from .... 
Comment 2 agctools 2004-04-29 02:58:08 UTC
But manifest file containing double-byte characters can't be manually
loaded either. If convert to ascii, the compiler doesn't read the
class name.
Comment 3 Ken Frank 2004-06-08 20:08:12 UTC
is this still an issue with nb4.0 since I dont think jar
receipe/packager is present anymore.

please add word I18N to front of synopsis of any i18n bugs,
besides putting it as keyword.

ken.frank@sun.com
06/08/2004
Comment 4 _ ttran 2004-06-14 09:39:06 UTC
need to check the spec but I think manifest format does not allow you
to put chinese chars there

Jesse, do you know?
Comment 5 Jesse Glick 2004-06-14 17:03:56 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4260472

Although the JAR manifest spec implies that UTF-8 should be used as
the character encoding, it is not explicitly stated, and in fact the
JRE's current impl does not handle international characters as far as
I know. So for now, sorry - you must name your main class and its
package in ASCII.
Comment 6 Marian Mirilovic 2005-07-12 09:47:16 UTC
closed
Comment 7 Ken Frank 2007-03-01 17:49:16 UTC
just checking to see if this is still true for jdk6, that ascii must
be used and thus non ascii will still be seen correctly in ide in manifest file
or info from manifest file.

ken.frank@sun.com
Comment 8 Jesse Glick 2007-03-01 18:12:44 UTC
Well, in a NB dev build running on JDK 7 on a Linux laptop using UTF-8 system
encoding I created a new project w/ main class, called "Hezky Česky". Running
via F6 was fine. I built the JAR with F11. The resulting JAR's manifest has

Main-Class: hezkyčesky.Main

in UTF-8 format. java -jar on the command line runs it just fine. NB by default
creates Hezky__esky.jar to be on the safe side (it will choose conservative JAR
names), though if you care you can edit project.properties:

dist.jar=${dist.dir}/Hezky_\u010Cesky.jar

and the resulting Hezky_Česky.jar will also work fine. (Note that non-ISO-8859-1
chars are not permitted raw in .properties files; the Insert Unicode module from
AU is helpful here, or you can use the property sheet.)

So as usual, the summary is: if you are using Linux with UTF-8 encoding, you
have nothing to worry about; if you are using another OS, or Linux with a legacy
encoding, you can try and maybe it will work.