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 118232

Summary: [60cat] Creation of Projects with Accents possible?
Product: java Reporter: host <host>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description host 2007-10-09 14:29:48 UTC
[ JDK VERSION : 1.6.0_02 ]

I just created a project with the name "Protégé".

The project creation wizard creates the top-level source package
"protégé" - are packages with accents allowed? If not then this is
obviously a bug...

Also, when building this new project from the project menu with
"Build" NB (or Ant?) creates a Jar-file with the accents replaced by
underscores (as seen in the output below)

...
Created dir: C:\development\Protégé\dist
Building jar: C:\development\Protégé\dist\Prot_g_.jar
Not copying the libraries.
To run this application from the command line without Ant, try:
java -jar "C:\development\Protégé\dist\Prot_g_.jar"
jar:
...
Comment 1 Milos Kleint 2007-10-09 14:56:43 UTC
ant related?
Comment 2 Jesse Glick 2007-10-09 22:48:35 UTC
Non-ASCII characters are permitted in package names so long as your operating system supports such characters properly
in file paths. I know it works fine on Linux; I would not put money on it working well on Windows, but it may.

The use of underscores in the JAR name is intentional, as a safety measure; any characters which are not known to be
safe are replaced with underscores. You can edit the final JAR name in project.properties if you prefer.