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

Bug 370648

Summary: Wrong default encoding of file when creating the project of type "Hello World C++ Project" with globally changed default encoding (from UTF-8 to UTF-16).
Product: [Tools] CDT Reporter: Wojciech Chojnacki <skyman.pl>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: major    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Wojciech Chojnacki CLA 2012-02-04 22:42:23 EST
Build Identifier: Version: 3.7.0 Build id: I20110613-1736

I've just noticed that if I globally change default encoding (from UTF-8 to UTF-16) I'll have errors with default auto-generated files when I create new project.

I supose that Eclipse Developers created just 1 (UTF-8) version of default files not having regard to the the fact that if programmer globally change default encoding to something diffirent it will make auto-generated files useless.

It can be avoided if you force UTF-8 encoding for files however this is not the solution.

Here you have screenshots of test project:
http://imgur.com/a/pwTa4

Reproducible: Always

Steps to Reproduce:
1. Globally change default encoding (Window->Preferences) - in my case from UTF-8 (which is default) to UTF-16.
2. Create new project of type "Hello World" (I've tested it, only for C++ Hello World project).
3. Done. You can see some asian characters.
Comment 1 Anton Leherbauer CLA 2012-02-06 10:29:55 EST
That's a bug in the project wizard / template engine.
Comment 2 Wojciech Chojnacki CLA 2012-02-12 14:02:52 EST
(In reply to comment #1)
> That's a bug in the project wizard / template engine.

I can't find this on product list - could you tell me what to change?