Support non-POSIX TZ strings
jdoubleu
hi@jdoubleu.de
Mon Feb 14 19:58:47 GMT 2022
Thanks for the quick response!
> [..] but we should start with the actual POSIX spec under TZ
Yes, that is exactly what I meant: Newlib supporting the <> (angle
brackets) syntax.
I didn't know that it was actually part of POSIX spec, since so many
libs actually don't implement it.
> The BSD or TZcode implementations could probably be adapted [..]
It looks like the TZcode implementation by Paul Eggert uses a different
approach to parsing the strings, than the current implementation in
newlib
(https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/time/tzset_r.c).
I'm not sure, if you want to copy the code over or use changes by e.g.
Earle F. Philhower from
https://github.com/earlephilhower/newlib-xtensa/pull/14.
Because of the above question, I'm not sure how to continue on this. I
would like to contribute myself and submit an implementation, but I'll
wait for feedback by other maintainers, first.
Cheers
------------
jdoubleu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1834F040CC8BC18C.asc
Type: application/pgp-keys
Size: 3151 bytes
Desc: OpenPGP public key
URL: <https://sourceware.org/pipermail/newlib/attachments/20220214/31d73055/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/newlib/attachments/20220214/31d73055/attachment.sig>
More information about the Newlib
mailing list