Skip to content

Commit 21c6e69

Browse files
authored
Ensure that SimpleDateFormat::fUsePlainSpaces is always initialized (#40) (#41)
1 parent f7befba commit 21c6e69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

icuSources/i18n/smpdtfmt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,8 @@ SimpleDateFormat::initialize(const Locale& locale,
13411341
fUsePlainSpaces = true;
13421342
os_log(OS_LOG_DEFAULT, "ICU using compatibility space for date formatting");
13431343
}
1344+
#else
1345+
fUsePlainSpaces = false;
13441346
#endif // APPLE_ICU_CHANGES && U_PLATFORM_IS_DARWIN_BASED
13451347

13461348
parsePattern(); // Need this before initNumberFormatters(), to set fHasHanYearChar

0 commit comments

Comments
 (0)