Imported Upstream version 58.1
[platform/upstream/icu.git] / source / test / cintltst / cdateintervalformattest.c
index 92b0b35..72110fa 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /********************************************************************
  * Copyright (c) 2011-2016, International Business Machines Corporation
  * and others. All Rights Reserved.
@@ -280,8 +282,7 @@ static void TestFPos_SkelWithSeconds()
            UChar   ubuf[kSizeUBuf];
            int32_t ulen, uelen;
            UErrorCode status = U_ZERO_ERROR;
-           
-           u_strFromUTF8(ubuf, kSizeUBuf, &ulen, locSkelItemPtr->skeleton, -1, &status);
+            ulen = u_unescape(locSkelItemPtr->skeleton, ubuf, kSizeUBuf);
            udifmt = udtitvfmt_open(locSkelItemPtr->locale, ubuf, ulen, zoneGMT, -1, &status);
            if ( U_FAILURE(status) ) {
            log_data_err("FAIL: udtitvfmt_open for locale %s, skeleton %s: %s\n",