| Summary: | Change project encoding from ISO-8859-1 to UTF-8 in eclipse.platform.runtime | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | Runtime | Assignee: | Lars Vogel <Lars.Vogel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, david_williams, Lars.Vogel, markus.kell.r, psuzzi |
| Version: | 4.6 | ||
| Target Milestone: | 4.7 M2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://git.eclipse.org/r/75013 https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=eace8041f02e176091133c329581ff35dc0bd270 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 399451 | ||
|
Description
Lars Vogel
Adding Dani, so that we can confirm or correct my understanding of his statement. New Gerrit change created: https://git.eclipse.org/r/75013 (In reply to Eclipse Genie from comment #2) > New Gerrit change created: https://git.eclipse.org/r/75013 WARNING: Before you can merge that change you must check all files for special characters (those that won't be the same when changing the encoding). Those files need to be converted, otherwise they will be mangled. (In reply to Dani Megert from comment #3) > (In reply to Eclipse Genie from comment #2) > > New Gerrit change created: https://git.eclipse.org/r/75013 > > WARNING: Before you can merge that change you must check all files for > special characters (those that won't be the same when changing the > encoding). Those files need to be converted, otherwise they will be mangled. Would such files not show in the Git staging view after I changed the encoding? (In reply to Lars Vogel from comment #4) > (In reply to Dani Megert from comment #3) > > (In reply to Eclipse Genie from comment #2) > > > New Gerrit change created: https://git.eclipse.org/r/75013 > > > > WARNING: Before you can merge that change you must check all files for > > special characters (those that won't be the same when changing the > > encoding). Those files need to be converted, otherwise they will be mangled. > > Would such files not show in the Git staging view after I changed the > encoding? No. The setting defines how an existing file is read and written. It does not convert any files when changing it. Markus gives a tip in bug 399451#c2 on how to search for "non ascii" characters. In short, regex search for [\x80-\uFFFF]. These may or may not map to the same letter in UTF-8 encoding. From what I happen to have loaded in my workspace, I did see one non-ascii character (in a committers name) in DependenciesLeakTest.java. A SMALL LETTER U WITH DIAERESIS? I do not *think* it will map, and may need correcting after the setting changes. As one source of "mapping characters" see http://www.utf8-chartable.de/ (which was just the fist in my google search, there might be better sources.) And, all this was from a very quick glance ... just writing it here that there is more to do than simply changing the setting. Bug 399451 comment 4 tells how to properly set up projects. Gerrit change https://git.eclipse.org/r/75013 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=eace8041f02e176091133c329581ff35dc0bd270 Thanks David and Markus for the advice. |