]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/cintltst/ucsdetst.c
ICU-64252.0.1.tar.gz
[apple/icu.git] / icuSources / test / cintltst / ucsdetst.c
index ac155ce53132b0d37c43f0c606372d8274fd4ba0..24bde2d37ee9d83bf2ea120fa5aaa3aac4c2c78e 100644 (file)
@@ -657,6 +657,8 @@ static const SampleTextAndEncoding mailSampleTests[] = {
     { "../testdata/encodingSamples/mailExample_Latin1Esc_7.txt", "iso-8859-1" },
     { "../testdata/encodingSamples/mailExample_Latin1Esc_8.txt", "iso-8859-1" },
     { "../testdata/encodingSamples/mailExample_Latin1Esc_9.txt", "iso-8859-1" },
+    // additions for <rdar://problem/56373519>
+    { "../testdata/encodingSamples/mailExample_Latin1_11.txt",  "iso-8859-1" },
     { NULL, NULL }
 };
 
@@ -684,11 +686,12 @@ static void TestMailFilterCSS(void) {
                     } else {
                         const char *icuName = ucsdet_getName(highestMatch, &status);
                         int32_t confidence = ucsdet_getConfidence(highestMatch, &status);
+                        const char *langCode = ucsdet_getLanguage(highestMatch, &status);
                         if (U_FAILURE(status) || icuName==NULL) {
                             log_err("ucsdet_getName and/or ucsdet_getConfidence fails for text file %s: %s\n", testPtr->sampleTextPath, u_errorName(status));
                         } else {
-                            log_info("For text file %s: expect %s; get %s with confidence %d, text length %ld\n",
-                                    testPtr->sampleTextPath, testPtr->encodingName, icuName, confidence, sampleTextLen);
+                            log_info("For text file %s: expect %s; get %s with confidence %d, langCode %s; text length %ld\n",
+                                    testPtr->sampleTextPath, testPtr->encodingName, icuName, confidence, langCode, sampleTextLen);
                         }
                     }
                 }