Community
Participate
Working Groups
Reporter: Gao Yin Yin Language: Simplfied Chinese Build driver: eclipse-sourceBuild-srcIncluded-3.0M9 JDK Version: IBM J2SDK 1.4.1 Severity: 3 Summary: Surrogate – surrogate characters cannot be displayed correctly in the problem view. Steps to recreate problem: 1. New a project whose name contains surrogate character, for example: cq90 \ud840\udc00; 2. New a java class in that project; Modify it to produce some errors; Build the project; 3. Open problems view through “Window à Show View à Problems”; You can see that in the “In Folder” column of the table view, it displays “cq90”, not cq90 \ud840\udc00; <<Error>> Surrogate characters cannot be displayed correctly in the problems view. <<Expected Result>> Surrogate characters can be displayed correctly in the problems view. <<Cause>> Problems view does not support font setting. <<Solution>> Modify ProblemView.java to support font setting according to “Text Font” setting in “WindowàPreference…àWorkbenchàColors and Fonts”. Add ProblemView objects to PropertyChangeListener and add property change event handler in ProblemView.
Created attachment 13330 [details] Modified source file with file diff
Created attachment 13331 [details] Screen capture
*** Bug 70180 has been marked as a duplicate of this bug. ***
*** Bug 70186 has been marked as a duplicate of this bug. ***
*** Bug 70187 has been marked as a duplicate of this bug. ***
*** Bug 70191 has been marked as a duplicate of this bug. ***
I have marked the others as duplicates of this one as it is all to do with widgets that are using default fonts. This font is taken from your operating system settings - on XP you can find it in your Windows system properties. You should make sure that the font you are using in XP handles the characters you want to use. Eclipse will not be adding a view font as it was a design decision for us to always try and use system settings where they are available.
*** Bug 68569 has been marked as a duplicate of this bug. ***
Following this design decision, in order to display the surrogate characters in Eclipse, user have to change the font setting of operation system. That's not what we want. We know it's possible for Eclipse to enable font setting for these views, just like text font. The font setting in Preference provides a good architecture for this enhancement. What's your consideration of this design decision? Is there any underground situation we do not know?
I am not sure why you would want a font that could not handle the characters you need in other applications? This will be the same font used by anything else you run on your machine. If we were to change it to use some other font then it would make themes virtually useless to people who use Eclipse. I am not sure why you would want to use a font that does not have surrogate characters in your other apps if they are characters your need. We don't intend at this point to do any Eclipse- specific overrides and there is no in progress plan to the best of my knowledge.
*** Bug 70921 has been marked as a duplicate of this bug. ***
special characters are not the main problem here in my opinion. the additional views (navigator, package explorer, ...) contain a lot of information that is used for fast navigation and on middle to larger sized projects the views become cumbersome and useless with the large default fontsize. (and most eclipse users i know share my opinion on this - some even stopped using eclipse for this frustrating detail) actually i work around at the moment reducing the system fontsize so that i can have an acceptable fontsize in these views. on the other hand a lot of my system-applications become useless that way, as their user interfaces were designed for the systems's default font size. i really don't understand the design decision not to implement these fontsize settings - it shouldn't be a major task nor bug-prone or anything.