Community
Participate
Working Groups
Build Identifier: One can change the default encodings for file types within the preferences which is a nice feature. However, the user gets no assistance choosing the encoding, no feedback about unsupported encodings even so that setting an encoding "bogus" does work in the prefs page, but will bring up an error once that file type is opened in the editor.. Reproducible: Always Steps to Reproduce: 1. Open prefs page: Content Types 2. Set the default encoding for <file type> to "bogus" 3. Open a <file type> file in the editor
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