Subject: | Windows Server 2008/Vista time zone residual cases still fail |
The issue in ticket 35733 still exists in a few cases. This was the
Windows Server 2008/Vista time zone detection issue. A colleague of mine
has found a case where the registry get returned in
DateTime::TimeZone::Local::Win32 is not properly cleaned following a
null. This is because $win_name =~ s/\0.*$// doesn't handle the case
where there is a newline in the data after the null. Multiple nulls and
newlines are also like to return invalid values. It probably ought to be:
$win_name =~ s/\0.*$//s
or even an index and substr combination, given that the $win_name appears
to be a mix of text and binary data.