]> granicus.if.org Git - icu/commitdiff
ICU-12766 fix to escaper for z/OS - all compiles now!
authorSteven R. Loomis <srl@icu-project.org>
Sat, 25 Mar 2017 05:16:48 +0000 (05:16 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Sat, 25 Mar 2017 05:16:48 +0000 (05:16 +0000)
X-SVN-Rev: 39936

icu4c/source/tools/escapesrc/escapesrc.cpp
icu4c/source/tools/escapesrc/expect-simple.cpp
icu4c/source/tools/escapesrc/test-simple.cpp

index 6f97be4e9a4a8b88fdd99ce34d8ef38f33a02538..ab240383e891051bb64f7e0a0c5c2943322478d1 100644 (file)
@@ -251,6 +251,9 @@ bool fixAt(std::string &linestr, size_t pos) {
       int32_t trail = U8_COUNT_TRAIL_BYTES(linestr[pos]);
       for(size_t pos2 = pos+1; trail>0; pos2++,trail--) {
         linestr[pos2] = cp1047_to_8859(linestr[pos2]);
+        if(linestr[pos2] == 0x0A) {
+          linestr[pos2] = 0x85; // NL is ambiguous here
+        }
       }
 #endif
       
index 3770bfba7ec1a81dd75418790965128f30787d7d..a6019a8d403f7657dd6d782e3230e3196445a0d3 100644 (file)
@@ -4,6 +4,7 @@
 u"sa\u0127\u0127a";
 u'\u6587';
 u"\U000219F2";
+u"\u039C\u03C5\u03C3\u03C4\u03AE\u03C1\u03B9\u03BF";
 
  u"sa\u0127\u0127a";
  u'\u6587'; u"\U000219F2";
index b2fc953e475799fda50b2ebbfb00383c5cdddeb7..b03f28f7067295f867643aace370274a03f9e144 100644 (file)
@@ -4,6 +4,7 @@
 u"saħħa";
 u'文';
 u"𡧲";
+u"Μυστήριο";
 
  u"saħħa";
  u'文'; u"𡧲";