]> Cypherpunks repositories - gostls13.git/commit
time: fix registry zone info lookup on Windows
authorPatrick Mezard <patrick@mezard.eu>
Tue, 12 May 2015 06:19:00 +0000 (08:19 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 12 May 2015 14:28:40 +0000 (14:28 +0000)
commit51021cc83f54964aa5e6a71cdf2206ae169acbb8
tree8f3c7818aa95ebe2e1de63e479f715bfd849b875
parent71bf182028c2c7dd70e6a391a6519eb17dd06b3c
time: fix registry zone info lookup on Windows

registry.ReadSubKeyNames requires QUERY access right in addition to
ENUMERATE_SUB_KEYS.

This was making TestLocalZoneAbbr fail on Windows 7 in Paris/Madrid
timezone. It succeeded on Windows 8 because timezone name changed from
"Paris/Madrid" to "Romance Standard Time", the latter being matched by
an abbrs entry.

Change-Id: I791287ba9d1b3556246fa4e9e1604a1fbba1f5e6
Reviewed-on: https://go-review.googlesource.com/9809
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/export_windows_test.go
src/time/zoneinfo_windows.go
src/time/zoneinfo_windows_test.go