ICU-1200 no need any more to explicitly NUL-terminate after US::extract() to codepage
X-SVN-Rev: 5803
This commit is contained in:
parent
9fac14aa96
commit
513ddbcaf2
@ -39,9 +39,7 @@ UnicodeConverter::UnicodeConverter(const char* name, UErrorCode& err)
|
||||
UnicodeConverter::UnicodeConverter(const UnicodeString& name, UErrorCode& err)
|
||||
{
|
||||
char myName[UCNV_MAX_CONVERTER_NAME_LENGTH];
|
||||
int i;
|
||||
name.extract(0, i = name.length(), myName);
|
||||
myName[i]='\0';
|
||||
name.extract(myName, sizeof(myName), 0, err);
|
||||
myUnicodeConverter = ucnv_open(myName, &err);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user