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 84030 - I18N - XML with multibyte cannot be validated
Summary: I18N - XML with multibyte cannot be validated
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-09-01 14:01 UTC by Jiri Prox
Modified: 2006-09-27 13:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (8.63 KB, application/x-compressed)
2006-09-04 12:42 UTC, Jiri Prox
Details
full stacktrace (1.26 KB, text/plain)
2006-09-04 12:55 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-09-01 14:01:41 UTC
NB 5.5 200608260000
JDK 
pseudolocalized

XML file with multibyte character in name (or path) cannot be validated. IAE is
thrown when validation action is called.

java.lang.IllegalArgumentException: Parameter file was not normalized. Was
/space/copy/JavaApplication8/doc%E7%B2%AE.xml instead of
/space/copy/JavaApplication8/doc粮.xml
	at org.openide.filesystems.FileUtil.fromFile(FileUtil.java:471)
	at
org.netbeans.modules.xml.core.actions.InputOutputReporter.display(InputOutputReporter.java:165)
Comment 1 Sherold Dev 2006-09-04 10:55:59 UTC
I cannot reproduce this issue, I've created the doc粮.xml on my local system and
I was able to validate it w/o any problems. 

Could you please provide steps how to reproduce this issue. Maybe attaching the
project with that xml file would be enough.
Comment 2 Jiri Prox 2006-09-04 12:42:43 UTC
Created attachment 33553 [details]
Test project
Comment 3 Jiri Prox 2006-09-04 12:53:17 UTC
Steps to reproduce:
1) create new project
2) create XML file (in pseudolocalized build it contains multibyte name by default)
3) press Validate XML buttonn
-> exception it thrown
Comment 4 Jiri Prox 2006-09-04 12:55:06 UTC
Created attachment 33554 [details]
full stacktrace
Comment 5 Sherold Dev 2006-09-04 14:27:35 UTC
Thanks, I am able to reproduce it now -> TM 5.5
Comment 6 Sherold Dev 2006-09-05 09:27:39 UTC
F.

Checking in src/org/netbeans/modules/xml/core/actions/InputOutputReporter.java;
/cvs/xml/core/src/org/netbeans/modules/xml/core/actions/InputOutputReporter.java,v
 <--  InputOutputReporter.java
new revision: 1.21.52.3; previous revision: 1.21.52.2
done
Comment 7 Jiri Prox 2006-09-27 13:00:31 UTC
verified