| Summary: | Content Types preference page: default encoding is a text field that is not checked against the supported encodings | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Helmut J. Haigermoser <helmut.haigermoser> |
| Component: | UI | Assignee: | Dani Megert <daniel_megert> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, Michael_Rennie |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Helmut J. Haigermoser
CQ:WIND00090301 *setting the Version to 3.7* We need to be careful here. The set of supported encodings is not fixed but depends on the JRE. Whether we should allow to enter an unsupported encoding is questionable but we must ensure that we don't destroy current values just because the current JRE doesn't know them. I would not touch this. (In reply to comment #2) > We need to be careful here. The set of supported encodings is not fixed but > depends on the JRE. Whether we should allow to enter an unsupported encoding is > questionable but we must ensure that we don't destroy current values just > because the current JRE doesn't know them. > > I would not touch this. Hi Dani :) Hm, I understand your POV. Instead of strict checking, as a very safe fix can we verify the encoding as it is entered and report something like this in the dialog via warning-type Label: "Warning: The entered encoding is not supported by your Java Runtime Environment. Editors will not be able to display files for this encoding, among other issue. Please verify the spelling of the encoding and the used JRE (<display some JRE details>) to make sure the encoding can be used.." What do you think? Helmut Sorry Helmut. I quickly checked the code and we already disallow to *enter* bad values in general (e.g. General > Workspace > Text file encoding). This just got lost for the content type encoding. (In reply to comment #4) > Sorry Helmut. I quickly checked the code and we already disallow to *enter* bad > values in general (e.g. General > Workspace > Text file encoding). This just > got lost for the content type encoding. Thanks for checking Dani! :) Sounds like we have a plan, aligning the "type encoding" with the "text file encoding" seems to benefit all, consistency, accuracy and hely! :) Helmut Fixed in R3_development: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f34e829759d47e24019fbcdfa51d0e0e6c3f7e7d Fixed in master: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=52ae62222f189b840ad46c3812f7579044592985 verified in: Version: 4.2.0 Build id: I20120430-1800 forgot to mention also verified in: Version: 3.8.0 Build id: I20120430-2000 |