Bug 56885 problematic use of platform encoding in CompareResultDialog.CompareElement [JUnit]
M8 org.eclipse.jdt.internal.junit.ui.CompareResultDialog.CompareElement uses platform encoding to encode Unicode string. This may result in data loss if platform encoding doesn't preserve Unicode.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CompareResultDialog.java
private String fSource;
        CharacterComparator(String source) {
            fSource= source;
        }
        public int getTokenStart(int index) {
            return index;
        }
        public int getTokenLength(int index) {
            return 1;
        }
        public int getRangeCount() {
            return fSource.length();
        }
        public boolean rangesEqual(int thisIndex, IRangeComparator other, int otherIndex) {
            CharacterComparator occ= (CharacterComparator) other;
            return fSource.charAt(thisIndex) == occ.fSource.charAt(otherIndex);
        }
        public boolean skipRangeComparison(int length, int maxLength, IRangeComparator other) {
            return false;
        }
    }
    
	private static class CompareElement implements ITypedElement, IStreamContentAccessor {