ICU-8971 changes undone

X-SVN-Rev: 31977
This commit is contained in:
Debabrata Sengupta 2012-06-21 20:58:24 +00:00
parent 1c3cb575f7
commit fab050ad44

View file

@ -1701,7 +1701,7 @@ _canonicalize(const char* localeID,
}
if(_isIDSeparator(*tmpLocaleID)) {
/* If there is something else, then we add the _ if we found country before.*/
if (cntrySize >= 0 && ! _isIDSeparator(*(tmpLocaleID+1)) ) {
if (cntrySize > 0 ) {
++fieldCount;
if(len<nameCapacity) {
name[len]='_';