time/ISO8601: refactor ParseTimeOfDay() to parse one by one

This prepares the migration away from strptime() for Windows
portability.

But the real reason I'm doing this is that strptime() on Apple is
buggy: strptime("14", "%H%M%S") (without separating colons) succeeds
even though only the hour has been parsed.  This fixes recent Travis
failures in the ParseISO8601() unit test.
This commit is contained in:
Max Kellermann
2019-12-23 17:12:17 +01:00
parent 2bc127bb43
commit 744bd1eadc
2 changed files with 52 additions and 15 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.21.18 (not yet released)
* protocol
- work around Mac OS X bug in the ISO 8601 parser
* output
- alsa: fix hang bug with ALSA "null" outputs
* storage