]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/locale/test/test_codepage.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / locale / test / test_codepage.cpp
index 0dfe07dd9b92377116c72aedefc95fa694898df8..389c811eb08e2fe55f1beba06505f2afc89bea29 100644 (file)
@@ -413,6 +413,11 @@ int main()
                 en_us_8bit = get_std_name("en_US.ISO8859-1");
                 he_il_8bit = get_std_name("he_IL.ISO8859-8");
                 ja_jp_shiftjis = get_std_name("ja_JP.SJIS");
+                if(!ja_jp_shiftjis.empty() && !test_std_supports_SJIS_codecvt(ja_jp_shiftjis))
+                {
+                    std::cout << "Warning: detected unproper support of " << ja_jp_shiftjis << " locale, disableling it" << std::endl;
+                    ja_jp_shiftjis = "";
+                }
             }
             else {
                 en_us_8bit = "en_US.ISO8859-1";