From d0ed7b3b606f61b0b1948aa6aa16bd6c085384bf Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Thu, 19 Nov 2015 21:16:12 +0000 Subject: [PATCH] ICU-11987 Apply patch for TZ detection X-SVN-Rev: 38093 --- icu4c/source/common/putil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icu4c/source/common/putil.cpp b/icu4c/source/common/putil.cpp index 3980c6f6b06..09f606f8f4f 100644 --- a/icu4c/source/common/putil.cpp +++ b/icu4c/source/common/putil.cpp @@ -1000,6 +1000,10 @@ uprv_tzname(int n) && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0 #endif ) { + /* The colon forces tzset() to treat the remainder as zoneinfo path */ + if (tzid[0] == ':') { + tzid++; + } /* This might be a good Olson ID. */ skipZoneIDPrefix(&tzid); return tzid; -- 2.40.0