Bug 458409 - [General] Consistent use of UTF-8 encoding
Summary: [General] Consistent use of UTF-8 encoding
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Others (show other bugs)
Version: 1.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 08:53 EST by Christian Damus CLA
Modified: 2017-08-02 12:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2015-01-26 08:53:18 EST
The Papyrus source code in git is encoded in a mix of 

  * UTF-8 encoding
  * Windows Cp1252 (I think, could be ISO 8859-1 in at least some cases as there
    is overlap)

This is especially noticeable in Xtend sources, which are becoming ever more prominent in our code, as the «» guillemets are represented very differently in these encodings (for the most part, Java sources contain only ASCII characters, which are common to all of these encodings).  Consequently, when bringing such files into a workspace that uses UTF-8 encoding by default (such as any created by Oomph, especially on non-Windows platforms that don't even support Cp1252), Xtend fails to compile to Java.  In many cases this is already accounted for by resource encoding preferences in the project's .settings/, but this is only to tell Eclipse what the encoding is.  These files are still not UTF-8.  Consequently, external tools such as graphical merge tools still have trouble dealing with these files.  We also often see garbage characters in place of diacriticals in the names of contributors in the copyright headers, for example, although that is not a severe problem.

We really ought to standardize the source file encoding across the board as UTF-8, managed in the project .settings/.  I can volunteer to update the project settings of all active source projects and to convert files to UTF-8 encoding where necessary.  The priority is the Xtend sources.