Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370648 - 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).
Summary: Wrong default encoding of file when creating the project of type "Hello World...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 22:42 EST by Wojciech Chojnacki CLA
Modified: 2020-09-04 15:23 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?