]> granicus.if.org Git - icu/commitdiff
ICU-8971 changes undone
authorDebabrata Sengupta <dsengup@svn.icu-project.org>
Thu, 21 Jun 2012 20:58:24 +0000 (20:58 +0000)
committerDebabrata Sengupta <dsengup@svn.icu-project.org>
Thu, 21 Jun 2012 20:58:24 +0000 (20:58 +0000)
X-SVN-Rev: 31977

icu4c/source/common/uloc.cpp

index 557bbf4b22da0c367b2fdd40601f9b5f51a4f659..8cbf7a3f9c93690898dcfaeeb438b9112bb29450 100644 (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]='_';