Bug 61986

Summary: [encoding] should file states remember encoding?
Product: [Eclipse Project] Platform Reporter: Rafael Chaves <eclipse>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: andre_weinand, dj.houghton
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 59232    

Description Rafael Chaves CLA 2004-05-12 15:30:42 EDT
IFileState extends IEncodedStorage. How should IFileState#getCharset work?

Some approaches:

a) remember the encoding for the file when it was saved (maybe only if one was
set by the user - either at the file or the container level)
b) guess it using the content type manager
c) do a), then b) if needed

"a)" would require the file history to be enhanced to support encoding info.

One thing to remember is that the target file may not exist in the workspace.
Comment 1 Rafael Chaves CLA 2004-05-27 16:39:45 EDT
Andre, it is very unlikely we are going to fix this one. It maight cause a
considerable overhead in the history story, only to support the not very common
scenario of people changing file encodings and being interested in the previous
contents.

Comment 2 Rafael Chaves CLA 2004-06-03 16:24:50 EDT
Deferring. Investigate post-3.0.
Comment 3 John Arthorne CLA 2006-11-21 14:00:44 EST
Closing as won't fix.