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 20043

Summary: I18N - web.xml file is truncated by inputting Japanese from property editor.
Product: javaee Reporter: hiroshiy <hiroshiy>
Component: CodeAssignee: issues@javaee <issues>
Status: CLOSED WORKSFORME    
Severity: blocker CC: jf4jbug
Priority: P2 Keywords: I18N
Version: -FFJ-   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: Content of truncated file is same as screen shot.
Here is truncated xml file.

Description hiroshiy 2002-02-01 13:47:05 UTC
to reproduce:
1. From Source Editor, right click for any web.xml file (e.g. web.xml in 
    "CD Shop Cart" which is bundled tutorial in FFJ), and select [Property].
2. Open for any property which has Description field
   (e.g. [Resource Reference] property in [References] tab) , input 
   for any name (which contains ascii characters) and input Description which
   contains japanese characters.
3. Click [OK] twice.
4. Right click edited web.xml file and select [open].
   web.xml file is truncated.
Comment 1 hiroshiy 2002-02-01 13:48:25 UTC
Created attachment 4522 [details]
Content of truncated file is same as screen shot.
Comment 2 hiroshiy 2002-02-01 13:50:15 UTC
Created attachment 4523 [details]
Here is truncated xml file.
Comment 3 hiroshiy 2002-02-04 09:54:33 UTC
Additional reports:

  - When JDK 1.3.1 is used.
     Input Japanese characters from property editor ...
        web.xml file is truncated.
     Input Japanese characters from source editor ...
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly.

  - When JDK 1.4 RC is used.
     Input Japanese characters from property editor ...
        web.xml file is not truncated.
        But, japanese characters are stored to web.xml file
        not correctly (with invalid encoding).
     Input Japanese characters from source editor ...
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly.
	
Comment 4 hiroshiy 2002-02-05 03:04:04 UTC
Additional reports (on FFJ-EE, v.3.0, Build 020204):

In latest build, Japanese characters are stored correctly. 
Details are following ...

  - When JDK 1.3.1 is used.
     Input Japanese characters from property editor ...
       <changed from last issue>
        web.xml file is not truncated.
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly. 

     Input Japanese characters from source editor ...
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly.

  - When JDK 1.4 RC is used.
     Input Japanese characters from property editor ...
       <changed from last issue>
        web.xml file is not truncated.
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly. 

     Input Japanese characters from source editor ...
        Japanese characters are stored to web.xml file
        in UTF-8 encoding correctly.
Comment 5 Petr Jiricka 2002-04-23 10:01:59 UTC
Changing target milestone to FFJ 4.0
Comment 6 Petr Jiricka 2002-04-23 10:12:23 UTC
Changing target milestone to FFJ 4.0
Comment 7 hiroshiy 2002-04-30 11:04:25 UTC
This issue is no longer re-appeared in current version.
Comment 8 Jesse Glick 2002-12-23 16:35:43 UTC
Consistent use of the I18N keyword.