https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123510

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-01-09
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We can fix this by either adding both cases to the switches, or using
toupper/tolower to canonicalize the input. This shows both changes, but only
one is needed:

--- a/libstdc++-v3/src/c++20/tzdb.cc
+++ b/libstdc++-v3/src/c++20/tzdb.cc
@@ -2000,9 +2000,10 @@ namespace std::chrono
     {
       string s;
       in >> s;
-      switch (s[0])
+      switch (std::toupper(s[0]))
       {
       case 'J':
+      case 'j':
        switch (s[1])
        {
        case 'a':

Reply via email to