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 - I18N - web.xml file is truncated by inputting Japanese from property editor.
Summary: I18N - web.xml file is truncated by inputting Japanese from property editor.
Status: CLOSED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@javaee
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2002-02-01 13:47 UTC by hiroshiy
Modified: 2002-12-23 16:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Content of truncated file is same as screen shot. (10.92 KB, image/gif)
2002-02-01 13:48 UTC, hiroshiy
Details
Here is truncated xml file. (1.45 KB, application/octet-stream)
2002-02-01 13:50 UTC, hiroshiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.