diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-01-26 11:35:00 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-01-26 13:38:22 +0000 |
commit | 2e445d9e99814644e7edabac4c3feb5df50303d9 (patch) | |
tree | 733945a76920b23c57b3c10439e264c424c6d484 /gcc/analyzer/infinite-recursion.cc | |
parent | 3376467ce090aa0966d59ca3aea35db4f17a4b47 (diff) | |
download | gcc-2e445d9e99814644e7edabac4c3feb5df50303d9.zip gcc-2e445d9e99814644e7edabac4c3feb5df50303d9.tar.gz gcc-2e445d9e99814644e7edabac4c3feb5df50303d9.tar.bz2 |
libstdc++: Add workaround for old tzdata.zi files
The tzdata.zi file in the RHEL 6 tzdata-2018e-3.el6 package (with
version "unknown") does not conform to the current rules described in
the zic(8) man page. Specifically, a Rule name must not start with the
character '+' in the current rules, but the older tzdata.zi file
used "+" as the name of rules for the "Europe/Sofia" zone.
Add a special case to the logic that detects whether a RULES field
refers to a named rule or is an offset from standard time. For a string
matching exactly "+" treat it as a named Rule, but for any other string
starting with '+' treat it as an offset.
libstdc++-v3/ChangeLog:
* src/c++20/tzdb.cc (operator>>(istream&, ZoneInfo&)): Allow
rules named "+" for compatibility with older tzdata.zi files.
Diffstat (limited to 'gcc/analyzer/infinite-recursion.cc')
0 files changed, 0 insertions, 0 deletions