commit cf8b507036f41379203d568abf192a927ed08f75
parent 764460714dd32c054823f22c86308c6b096c1e4d
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 24 Apr 2026 16:29:38 +0200
libc/time: Add / token in _tzset()
The / token was accepted in the syntax parsing but it
was not generated by the tokenizer.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libc/arch/posix/_tzone.c b/src/libc/arch/posix/_tzone.c
@@ -50,6 +50,7 @@ next(char *str)
n = strspn(s, "0123456789");
t = NUM;
break;
+ case '/':
case '+':
case '-':
case ':':
@@ -62,7 +63,7 @@ next(char *str)
t = EOS;
break;
default:
- n = strcspn(s, "+-0123456789");
+ n = strcspn(s, "+-0123456789,/");
t = STR;
break;
}