Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: patches/tzdetect.patch

Issue 2442923002: ICU update to 58 part 2 (Closed)
Patch Set: apply more patches and updates; almost ready to roll Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « patches/scriptset.patch ('k') | patches/utext.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/tzdetect.patch
diff --git a/patches/tzdetect.patch b/patches/tzdetect.patch
deleted file mode 100644
index fec7093c2eb66e49327712e574e943f04015fc43..0000000000000000000000000000000000000000
--- a/patches/tzdetect.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff --git a/source/common/putil.cpp b/source/common/putil.cpp
-index 5f09288..c87b60e 100644
---- a/source/common/putil.cpp
-+++ b/source/common/putil.cpp
-@@ -970,6 +970,15 @@ static char* searchForTZFile(const char* path, DefaultTZInfo* tzInfo) {
- return result;
- }
- #endif
-+
-+U_CAPI void U_EXPORT2
-+uprv_tzname_clear_cache()
-+{
-+#if defined(CHECK_LOCALTIME_LINK) && !defined(DEBUG_SKIP_LOCALTIME_LINK)
-+ gTimeZoneBufferPtr = NULL;
-+#endif
-+}
-+
- U_CAPI const char* U_EXPORT2
- uprv_tzname(int n)
- {
-diff --git a/source/common/putilimp.h b/source/common/putilimp.h
-index 5de801f..55ec0ae 100644
---- a/source/common/putilimp.h
-+++ b/source/common/putilimp.h
-@@ -479,6 +479,12 @@ U_INTERNAL int32_t U_EXPORT2 uprv_timezone(void);
- U_INTERNAL const char* U_EXPORT2 uprv_tzname(int n);
-
- /**
-+ * Reset the global tzname cache.
-+ * @internal
-+ */
-+U_INTERNAL void uprv_tzname_clear_cache();
-+
-+/**
- * Get UTC (GMT) time measured in milliseconds since 0:00 on 1/1/1970.
- * This function is affected by 'faketime' and should be the bottleneck for all user-visible ICU time functions.
- * @return the UTC time measured in milliseconds
-diff --git a/source/i18n/timezone.cpp b/source/i18n/timezone.cpp
-index 59c3891..00eca38 100644
---- a/source/i18n/timezone.cpp
-+++ b/source/i18n/timezone.cpp
-@@ -458,6 +458,8 @@ TimeZone::detectHostTimeZone()
-
- uprv_tzset(); // Initialize tz... system data
-
-+ uprv_tzname_clear_cache();
-+
- // Get the timezone ID from the host. This function should do
- // any required host-specific remapping; e.g., on Windows this
- // function maps the Date and Time control panel setting to an
« no previous file with comments | « patches/scriptset.patch ('k') | patches/utext.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698