Incorrect u_austrncpy() call from uprv_detectWindowsTimeZone()

Description

uprv_detectWindowsTimeZone() function breaks timezone information from Windows API and causes timezone detection failure.

For example, On my environemnt, Windows API returns "東京(標準時)" but uprv_detectWindowsTimeZone() fuction converts that into "東京(標" and returns wrong result.

Activity

Show:
TracBot
June 30, 2018, 11:32 PM
Trac Comment 1 by Isamu Mogi <saturday6c@cfa2dc54a2f434a9—2013-04-26T16:49:55.885Z

Applying attached wintz.c.diff will fix this problem.​

TracBot
June 30, 2018, 11:32 PM
Trac Comment 2 by Isamu Mogi <saturday6c@cfa2dc54a2f434a9—2013-04-27T18:39:32.516Z

Added wintz.c.2.diff. I fixed buffer limit argument. Please ignore wintz.c.diff. I misunderstood u_austrncpy's usage.

TracBot
June 30, 2018, 11:32 PM
Trac Comment 3 by Isamu Mogi <saturday6c@cfa2dc54a2f434a9—2013-04-27T19:01:04.940Z

Added wintz.c.3.diff (http://www.icu-project.org/trac/raw-attachment/ticket/10129/wintz.c.3.diff). Please ignore wintz.c.diff and wintz.c.2.diff.
I fixed patch to use sizeof() instead of macro value.

TracBot
June 30, 2018, 11:32 PM
Trac Comment 4 by Isamu Mogi <saturday6c@cfa2dc54a2f434a9—2013-04-27T19:30:14.156Z

Added wintz.c.4.diff. I'm sorry for repeated post. Previous patch edited by hand was broken. New one is created by svn diff.

Fixed

Assignee

mow@icu-project.org

Reporter

TracBot

Components

Labels

None

Reviewer

None

Priority

medium

Time Needed

None

Fix versions

Configure