jdk/src/jdk.charsets/share/classes/sun/nio/cs/ext/ExtendedCharsets.java.template
changeset 29119 f680ba340556
parent 28969 f980bee32887
child 30896 7d150914095e
equal deleted inserted replaced
29118:8782a8e91d4c 29119:f680ba340556
   220                         });
   220                         });
   221 
   221 
   222 
   222 
   223             }
   223             }
   224         }
   224         }
   225         String osName = getProperty("os.name");
       
   226         if ("SunOS".equals(osName) || "Linux".equals(osName) || "AIX".equals(osName)
       
   227                || osName.contains("OS X")) {
       
   228             charset("x-COMPOUND_TEXT", "COMPOUND_TEXT",
       
   229                     new String[] {
       
   230                         "COMPOUND_TEXT",        // JDK historical
       
   231                         "x11-compound_text",
       
   232                         "x-compound-text"
       
   233                     });
       
   234         }
       
   235         initialized = true;
   225         initialized = true;
   236     }
   226     }
   237 
   227 
   238     private static String getProperty(String key) {
   228     private static String getProperty(String key) {
   239         // this method may be called during initialization of
   229         // this method may be called during initialization of