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 75771 - I18N - Filename with regional characters should be refused
Summary: I18N - Filename with regional characters should be refused
Status: VERIFIED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-05-02 11:45 UTC by Jaromir Uhrik
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot attached... (41.21 KB, image/png)
2006-05-02 11:46 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2006-05-02 11:45:14 UTC
[build of 20060501 from 5.5 Beta branch]
I created file with character specific for czech alphabet. The file is created
but it is not possible to compile it - see attached screenshot.
Comment 1 Jaromir Uhrik 2006-05-02 11:46:22 UTC
Created attachment 30159 [details]
Screenshot attached...
Comment 2 Jiri Prox 2006-05-02 12:56:51 UTC
Does your file system support multibyte characters in filenames?
Comment 3 Jaromir Uhrik 2006-05-02 14:35:28 UTC
I don't know much about multibyte support on File System:Journaled HFS+ that is
default on my Mac OS X.
Comment 4 Ken Frank 2007-03-22 18:11:26 UTC
I think mac supports regional characters in filenames
since it is unix and since it allows locale settings.

Can you create in terminal window or other editor such a file 
and have it recognized by the OS or editor for opening ?

If so, then nb should be able to handle it.

in the png, I didnt see compiler error msgs

the ? is showing that the encoding  might not be handled ok by ide.

questions:

- did you set the czech locale in internaltion settings before running
nb ? If not, please try with this scenario.

if its ok then its probably not an issue since nb does not support per se
situation where user is in for example english locale but uses encoding
of other locale.

- you can try to change the editor encoding property option as well
if you were in en locale but character is in czech character set

ken.frank@sun.com
Comment 5 Tomas Zezula 2007-07-11 15:30:59 UTC
Seems as a bug in Apple's JDK, Czech java class created in the Xcode behaves in the same way. The content is interpreted
correctly in both Xcode & NetBeans (according to -encoding) but the java file name is broken and javac complains that
sym.name != sym.sourceFile.name.
Comment 6 Jaromir Uhrik 2007-09-14 09:25:33 UTC
Verified.