Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316502

Summary: makefile outline doesn't work with alternate encoding
Product: [Tools] CDT Reporter: Mike Kucera <mikekucera>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 6.0.2   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screeshot none

Description Mike Kucera CLA 2010-06-10 13:55:20 EDT
Created attachment 171657 [details]
screeshot

If I open a makefile that has EBCDIC encoding in the editor, then the outline view is all screwed up (probably also happens with other encodings too).

Steps to reproduce:
* create a makefile
* set its encoding to Cp1047
* open the file in the editor
Comment 1 Anton Leherbauer CLA 2010-06-11 04:00:49 EDT
The encoding is not considered when the IMakefile model is initially created in

org.eclipse.cdt.make.core.MakeCorePlugin.createMakefile(IFile)

As soon as I start editing, the outline gets fixed because the reconciler uses the editor buffer to update the model.
Comment 2 Anton Leherbauer CLA 2011-02-24 05:25:05 EST
MakeCorePlugin.createMakefile(IFile) does now respect the IFile encoding.