Skip to content

Commit

Permalink
Ensure that SimpleDateFormat::fUsePlainSpaces is always initialized (#40
Browse files Browse the repository at this point in the history
) (#41)
  • Loading branch information
jmschonfeld authored Aug 1, 2024
1 parent f7befba commit 21c6e69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icuSources/i18n/smpdtfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,8 @@ SimpleDateFormat::initialize(const Locale& locale,
fUsePlainSpaces = true;
os_log(OS_LOG_DEFAULT, "ICU using compatibility space for date formatting");
}
#else
fUsePlainSpaces = false;
#endif // APPLE_ICU_CHANGES && U_PLATFORM_IS_DARWIN_BASED

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

0 comments on commit 21c6e69

Please sign in to comment.