Project

Profile

Help

Revision 28964b25

Added by Michael Kay about 1 year ago

Fix bug #4582

View differences:

latest10/hej/net/sf/saxon/functions/FormatDate.java
104 104

  
105 105
        Numberer numberer = config.makeNumberer(language, place);
106 106
        FastStringBuffer sb = new FastStringBuffer(FastStringBuffer.C64);
107
        if (numberer.getClass() == Numberer_en.class && !"en".equals(language) && !languageDefaulted) {
107
        if (!languageDefaulted && numberer.getClass() == Numberer_en.class && !language.startsWith("en")) {
108
            // See bug #4582. We're not outputting the prefix in cases where ICU is used for numbering.
109
            // But the test on numberer.defaultedLocale() below may catch it...
108 110
            sb.append("[Language: en]");
109 111
        }
110 112
        if (numberer.defaultedLocale() != null) {

Also available in: Unified diff