Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4221476

Croatian file.encoding is wrong on Windows

XMLWordPrintable

    • 04
    • x86
    • other, windows_95, windows_nt



        Name: clC74495 Date: 03/18/99


        This is from Oracle, a Java licensee.
        The Oracle bug number is 761511.
          
        This bug occurs with JDK 1.1.7B and JDK1.2. Please examine it ASAP.

        The Croatian file.encoding property is Cp1252 in JDK1.1.7. Cp1252 is a Latin1
        code page and Croatian is a Latin2 language. The file.encoding should be
        Cp1250. The file.encoding is a Java system property and can be viewed via
        System.getProperty("file.encoding"). This encoding is still a problem in JDK1.2FCS.

        To fix this problem, the encoding_names section should be
        changed in locale_str.h file to:
        static char *encoding_names[] = {
            "ar", "Cp1256",
            "be", "Cp1251",
            "bg", "Cp1251",
            "cs", "Cp1250",
            "el", "Cp1253",
            "et", "Cp1257",
            "iw", "Cp1255",
            "hr", "Cp1250", /*Added for missing Croatian support*/
            "hu", "Cp1250",
            "ja", "MS932",
            "ko", "MS949",
            "lt", "Cp1257",
            "lv", "Cp1257",
            "mk", "Cp1251",
            "pl", "Cp1250",
            "ro", "Cp1250",
            "ru", "Cp1251",
            "sh", "Cp1250",
            "sk", "Cp1250",
            "sl", "Cp1250",
            "sq", "Cp1250",
            "sr", "Cp1251",
            "th", "MS874",
            "tr", "Cp1254",
            "uk", "Cp1251",
            "vn", "Cp1258", /*Added for missing Vietnamese support*/
            "zh", "GBK",
            "zh_TW", "MS950",
            "",
        };
        (Review ID: 55713)
        ======================================================================

              sherman Xueming Shen
              clucasius Carlos Lucasius (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: