If %I is used without %p, mark the ambiguity with failbit
This commit is contained in:
1 parent
ac6ca2a095
commit
2ef74cb41a
1 file changed
+2
@@ -7845,6 +7845,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
||||
goto broken;
|
||||
}
|
||||
}
|
||||
else // I is ambiguous, AM or PM?
|
||||
goto broken;
|
||||
}
|
||||
}
|
||||
if (H != not_a_hour)
|
||||
|
||||
Reference in new issue
Block a user