Support bracket enclosed names in TZ POSIX rules
authorEric Erhardt <eric.erhardt@microsoft.com>
Tue, 14 Mar 2017 17:49:43 +0000 (12:49 -0500)
committerEric Erhardt <eric.erhardt@microsoft.com>
Wed, 15 Mar 2017 14:32:06 +0000 (09:32 -0500)
commit34c197281077f83122f09fb7b892d4c676ffff7e
tree6a06f6a4a8973c150eb8c8c82d7e427c9f5ff6a1
parent4350362ca4fca0d6ae5ff3a5edf0cae7e3081d85
Support bracket enclosed names in TZ POSIX rules

The POSIX time zone rules at the end of a tzfile have been updated to allow digits, plus signs and minus signs in the time zone names by enclosing the name in `<` and `>` characters. TimeZoneInfo's parsing logic was written using an older version of the spec, so it didn't have support for this format.

Fix https://github.com/dotnet/corefx/issues/16962

Commit migrated from https://github.com/dotnet/coreclr/commit/4bcc0d5d9e8870bfb579c069c2d5b4dd3b4b3b1e
src/coreclr/src/mscorlib/src/System/TimeZoneInfo.Unix.cs