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 60555 - XMI writer produces wrong encoding attribute
Summary: XMI writer produces wrong encoding attribute
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: Other Other
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 00:19 UTC by jackknifebarber
Modified: 2005-09-05 10:05 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Patch to org.netbeans.lib.jmi.xmi.DefaultWriter (2.68 KB, patch)
2005-06-28 00:21 UTC, jackknifebarber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jackknifebarber 2005-06-28 00:19:16 UTC
In XMI documents, the XML encoding attribute doesn't get set right for systems
whose native encoding isn't Latin1.  Also, the line separator is hard-coded
to "\r\n", which isn't necessarily good when encoding to EBCDIC.

The attached patch makes sure to use a declaration consistent with the actual
encoding being used, and uses the system's native line separator.
Comment 1 jackknifebarber 2005-06-28 00:21:47 UTC
Created attachment 22911 [details]
Patch to org.netbeans.lib.jmi.xmi.DefaultWriter
Comment 2 Martin Matula 2005-06-28 14:12:53 UTC
Integrated.

Checking in jmiutils/src/org/netbeans/lib/jmi/xmi/DefaultWriter.java;
/cvs/mdr/jmiutils/src/org/netbeans/lib/jmi/xmi/DefaultWriter.java,v  <-- 
DefaultWriter.java
new revision: 1.2; previous revision: 1.1
done