ICU-882 Don't use the deprecated API.

X-SVN-Rev: 3931
This commit is contained in:
George Rhoten 2001-03-07 01:16:17 +00:00
parent fa645b0cee
commit de8965f853

View File

@ -637,7 +637,7 @@ Transliterator* Transliterator::_createInstance(const UnicodeString& ID,
// name; this in no way represents an actual locale.
char *ch;
ch = new char[entry->stringArg.size() + 1];
ch = new char[entry->stringArg.length() + 1];
ch[entry->stringArg.extract(0, 0x7fffffff, ch, "")] = 0;
Locale fakeLocale(ch);
delete [] ch;