+ localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, UPRV_LENGTHOF(localeID), &status);
+ if (U_SUCCESS(status)) {
+ lcidRecords[lcidCount].localeID = new char[localeIDLen + 1];
+ memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen);
+ lcidRecords[lcidCount].localeID[localeIDLen] = 0;
+ } else {
+ lcidRecords[lcidCount].localeID = NULL;
+ }