OLD | NEW |
(Empty) | |
| 1 Index: source/common/locid.cpp |
| 2 =================================================================== |
| 3 --- source/common/locid.cpp (revision 36834) |
| 4 +++ source/common/locid.cpp (working copy) |
| 5 @@ -484,6 +484,13 @@ |
| 6 /* preset all fields to empty */ |
| 7 language[0] = script[0] = country[0] = 0; |
| 8 |
| 9 + // Need to reset baseName. Otherwise, when a Locale object created with |
| 10 + // the default constructor is changed with setFromPOSIXID() later |
| 11 + // (e.g. locales obtained with getAvailableLocales()), |
| 12 + // baseName will be still that of the default locale instead of one |
| 13 + // corresponding to localeID. |
| 14 + baseName = NULL; |
| 15 + |
| 16 // "canonicalize" the locale ID to ICU/Java format |
| 17 err = U_ZERO_ERROR; |
| 18 length = canonicalize ? |
OLD | NEW |