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

Side by Side Diff: source/common/putil.cpp

Issue 1058353002: Fix the tz detection code. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: add upstream bug ref Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « patches/tzdetect2.patch ('k') | source/common/putilimp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 1997-2014, International Business Machines 4 * Copyright (C) 1997-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ****************************************************************************** 7 ******************************************************************************
8 * 8 *
9 * FILE NAME : putil.c (previously putil.cpp and ptypes.cpp) 9 * FILE NAME : putil.c (previously putil.cpp and ptypes.cpp)
10 * 10 *
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 /* Get out after the first one found. */ 963 /* Get out after the first one found. */
964 break; 964 break;
965 } 965 }
966 } 966 }
967 } 967 }
968 } 968 }
969 closedir(dirp); 969 closedir(dirp);
970 return result; 970 return result;
971 } 971 }
972 #endif 972 #endif
973
974 U_CAPI void U_EXPORT2
975 uprv_tzname_clear_cache()
976 {
977 #if defined(CHECK_LOCALTIME_LINK) && !defined(DEBUG_SKIP_LOCALTIME_LINK)
978 gTimeZoneBufferPtr = NULL;
979 #endif
980 }
981
973 U_CAPI const char* U_EXPORT2 982 U_CAPI const char* U_EXPORT2
974 uprv_tzname(int n) 983 uprv_tzname(int n)
975 { 984 {
976 const char *tzid = NULL; 985 const char *tzid = NULL;
977 #if U_PLATFORM_USES_ONLY_WIN32_API 986 #if U_PLATFORM_USES_ONLY_WIN32_API
978 tzid = uprv_detectWindowsTimeZone(); 987 tzid = uprv_detectWindowsTimeZone();
979 988
980 if (tzid != NULL) { 989 if (tzid != NULL) {
981 return tzid; 990 return tzid;
982 } 991 }
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 #endif /* U_ENABLE_DYLOAD */ 2221 #endif /* U_ENABLE_DYLOAD */
2213 2222
2214 /* 2223 /*
2215 * Hey, Emacs, please set the following: 2224 * Hey, Emacs, please set the following:
2216 * 2225 *
2217 * Local Variables: 2226 * Local Variables:
2218 * indent-tabs-mode: nil 2227 * indent-tabs-mode: nil
2219 * End: 2228 * End:
2220 * 2229 *
2221 */ 2230 */
OLDNEW
« no previous file with comments | « patches/tzdetect2.patch ('k') | source/common/putilimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698