earlephilhower / newlib-xtensa

newlib-xtensa fork intended for esp8266
GNU General Public License v2.0
5 stars 7 forks source link

Allow <>s in TZ-names in TZENV #13

Closed earlephilhower closed 3 years ago

earlephilhower commented 4 years ago

Some timezones are now encoded with "<+/-nn>" instead of a text name. Allow those greater-/less-than in the parser.

Fixes #12

earlephilhower commented 3 years ago

I realize that this is more complicated than a simple sprintf format. Presently the parser uses a "not in set (numbers,comma,plus/minus" to strip out the TZ name. However it is legal to have +/- in a <+/-nn> TZ name. So it needs to be stateful in some way to handle it. Closing this, will reopen with a real solution.