ICU-5086 Use the localtime timezone link check on platforms that support it.

X-SVN-Rev: 19322
This commit is contained in:
George Rhoten 2006-03-03 07:02:43 +00:00
parent 1e9f89c2c9
commit 0e9027e52a

View File

@ -790,7 +790,7 @@ uprv_tzname(int n)
because the tzfile contents is underspecified. because the tzfile contents is underspecified.
This isn't guaranteed to work because it may not be a symlink. This isn't guaranteed to work because it may not be a symlink.
*/ */
ret = readlink(TZZONELINK, gTimeZoneBuffer, sizeof(gTimeZoneBuffer)); int32_t ret = (int32_t)readlink(TZZONELINK, gTimeZoneBuffer, sizeof(gTimeZoneBuffer));
if (0 < ret) { if (0 < ret) {
int32_t tzZoneInfoLen = uprv_strlen(TZZONEINFO); int32_t tzZoneInfoLen = uprv_strlen(TZZONEINFO);
gTimeZoneBuffer[ret] = 0; gTimeZoneBuffer[ret] = 0;