]> granicus.if.org Git - icu/commitdiff
ICU-12139 revert bad change to cstr.cpp. It is intended to use and depend on conversi...
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 26 Feb 2016 21:37:06 +0000 (21:37 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 26 Feb 2016 21:37:06 +0000 (21:37 +0000)
X-SVN-Rev: 38386

icu4c/source/common/cstr.cpp

index 0c96f79c0d6216855159c7955974c6489976a57c..c30719361eacc5c083490d145094deb5dbf5e5c4 100644 (file)
@@ -15,11 +15,11 @@ U_NAMESPACE_BEGIN
 
 CStr::CStr(const UnicodeString &in) {
     UErrorCode status = U_ZERO_ERROR;
-    int32_t length = in.extract(0, in.length(), NULL, (uint32_t)0, US_INV);
+    int32_t length = in.extract(0, in.length(), NULL, (uint32_t)0);
     int32_t resultCapacity = 0;
     char *buf = s.getAppendBuffer(length, length, resultCapacity, status);
     if (U_SUCCESS(status)) {
-        in.extract(0, in.length(), buf, resultCapacity, US_INV);
+        in.extract(0, in.length(), buf, resultCapacity);
         s.append(buf, length, status);
     }
 }