Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325474 - [Backport] [content type] Platform doesn't recognize xml encoding attribute with additional whitespaces
Summary: [Backport] [content type] Platform doesn't recognize xml encoding attribute w...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.4.2+   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 293773
Blocks:
  Show dependency tree
 
Reported: 2010-09-16 10:18 EDT by Gary Karasiuk CLA
Modified: 2010-09-20 09:20 EDT (History)
2 users (show)

See Also:


Attachments
Fix + test (5.27 KB, patch)
2010-09-20 08:53 EDT, Szymon Brandys CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Karasiuk CLA 2010-09-16 10:18:42 EDT
Steps to reproduce

1) create an XML file, and use encoding="gb2312" (or encoding="UTF-16")
2) Observe from the properties view that the encoding is gb2312
3) Add a blank before the equals sign, e.g. encoding ="gb2312"
4) Observe from the properties view that the encoding has been ignored, that the encoding is now the default UTF-8

This is a regression from 3.0.2. The customer that I'm working with, felt that this defect should be a "major" defect, since they have a lot of these files.
Comment 1 Nick Sandonato CLA 2010-09-17 11:53:37 EDT
This looks like it has been resolved in later releases via Bug 293773.
Comment 2 John Arthorne CLA 2010-09-17 15:14:49 EDT

*** This bug has been marked as a duplicate of bug 293773 ***
Comment 3 Nick Sandonato CLA 2010-09-17 15:48:01 EDT
We would like this fixed in 3.4.2  if possible for an adopter product.
Comment 4 Szymon Brandys CLA 2010-09-20 08:53:40 EDT
Created attachment 179241 [details]
Fix + test
Comment 5 Szymon Brandys CLA 2010-09-20 09:20:46 EDT
The fix and test checked in to R3_4_maintenance.