* NEWS: Mention this.
* localtime.c (scrub_abbrs): Treat ' ' as bogus.
---
NEWS | 5 +++++
localtime.c | 1 -
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 0436c615..2c354038 100644
--- a/NEWS
+++ b/NEWS
@@ -51,6 +51,11 @@ Unreleased, experimental changes
-DHAVE_GETRESUID=[01], and -DHAVE_GETEUID=[01] to enable or
disable these system calls' use.
+ tzset etc. now treat ' ' like '_' in time zone abbreviations,
+ just as they treat other invalid bytes. This continues the
+ transition begun in release 96k, which removed spaces in tzdata
+ because the spaces break time string parsers.
+
tzcode now uses mempcpy if available, guessing its availability.
Compile with -DHAVE_MEMPCPY=1 or 0 to override the guess.
diff --git a/localtime.c b/localtime.c
index c5bc4e93..aa9ad7bd 100644
--- a/localtime.c
+++ b/localtime.c
@@ -504,7 +504,6 @@ scrub_abbrs(struct state *sp)
for (i = 0; i < sp->charcnt; ++i)
switch (sp->chars[i]) {
case '\0':
- case ' ':
case '+': case '-': case '.':
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
--
2.48.1