Re: Support non-POSIX TZ strings
Brian Inglis <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Organization | Systematic Software |
| Message-ID | <[email protected]> |
On 2022-02-14 12:58, jdoubleu wrote: > 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. That patch includes the angle bracket quotes < > in the STD and DST abbreviations, but the abbreviations are only contained *within* the quotes, which should *NOT* be included in the abbreviations. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]