Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Help newlib TZ parser#7699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 3 commits intoesp8266:masterfromd-a-v:helpnewlibtzparser
Nov 10, 2020
Merged

Conversation

@d-a-v
Copy link
Collaborator

Timezones coded with<±nn>±nn<±nn>[±nn][,...] are incorrectly parsed by newlib's TZ parser.
In these timezones,<±nn> is used because there is no matching name like in other timezones.
Example:

  • GMT0BST for London, (GMT is known, BST isBritish Summer Time).
  • <+1030>-10:30<+11>-11 for Lord Howe Island.

These names GMT,BST,CET,... are meant to be human readable but are useless in our use case.
Replacing<±nn> occurences byUNKnown allows newlib's TZ parser to nicely interpret all timezones.
UNK-10:30UNK-11 is then correctly parsed.

Ultimately, newlib should handle such TZ descriptors. Until then, they are handled by this script.

Fixes#7690

Timezones coded with <±nn>±nn<±nn>[±nn][,...] are incorrectly parsed by newlib's TZ parser.In these timezones, <±nn> is used because there is no matching name like in other timezones.Example: 'GMT0BST' for London, (GMT is known, BST is 'British Summer Time').Example: '<+1030>-10:30<+11>-11' for Lord Howe Island.These names GMT,BST,CET,... are meant to be human readable but are useless in our use case.Replacing <±nn> occurences by UNK allows newlib's TZ parser to nicely interpret all timezones.Ultimately, newlib should handle such tz descriptor. Until then, they are handled by this script.
@earlephilhower
Copy link
Collaborator

Would you like to put in a bug on the newlib repo for this change?https://github.com/earlephilhower/newlib-xtensa

@d-a-vd-a-v merged commit4de681b intoesp8266:masterNov 10, 2020
@d-a-vd-a-v deleted the helpnewlibtzparser branchNovember 10, 2020 22:35
@d-a-v
Copy link
CollaboratorAuthor

For reference

earlephilhower added a commit to earlephilhower/Arduino that referenced this pull requestNov 12, 2020
Undoes the change inesp8266#7699 andfixedesp8266#7690 root cause.Newlib did not support timezone names of the form "<[+-]?[0-9]+>" andwould parse the offset using the <name>.Fix newlib tzset parser withearlephilhower/newlib-xtensa#14and undo the UNK changes used as an expedient workaround.
earlephilhower added a commit that referenced this pull requestNov 12, 2020
Undoes the change in#7699 andfixed#7690 root cause.Newlib did not support timezone names of the form "<[+-]?[0-9]+>" andwould parse the offset using the <name>.Fix newlib tzset parser withearlephilhower/newlib-xtensa#14earlephilhower/newlib-xtensa#15and undo the UNK changes used as an expedient workaround.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@earlephilhowerearlephilhowerearlephilhower approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Some POSIX time zones are not handled correctly

2 participants

@d-a-v@earlephilhower

[8]ページ先頭

©2009-2025 Movatter.jp