-
Notifications
You must be signed in to change notification settings - Fork 553
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parsing timezone should support Unicode "MINUS SIGN" (U+2212) #835
Comments
I'm open to adding support for this, want to submit a PR? I am curious, which components are dumping obscure Unicode characters in your syslog? 😄 |
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 28, 2023
Extra tests not strictly necessary for prior commit introducing MINUS SIGN parsing. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 28, 2023
Extra tests not strictly necessary for prior commit introducing MINUS SIGN parsing. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 30, 2023
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Mar 30, 2023
Simplify timezone_offset_internal loop on negative. Issue chronotope#835 PR chronotope#1001
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 21, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 21, 2023
Extra tests not strictly necessary for prior commit introducing MINUS SIGN parsing. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 21, 2023
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 21, 2023
Simplify timezone_offset_internal loop on negative. Issue chronotope#835 PR chronotope#1001
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835 (cherry picked from commit 5d14c6e)
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835 (cherry picked from commit 5d14c6e)
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 29, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Jun 9, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Jun 9, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Jun 9, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Jun 9, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
Jun 9, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue chronotope#835
djc
pushed a commit
that referenced
this issue
Jun 12, 2023
Timezone signage also allows MINUS SIGN (U+2212) as specified by ISO 8601 and RFC 3339. Not for RFC 2822 format or RFC 8536 transition string. Issue #835
Fixed in #1087. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to Wikipedia
Problem
chrono
parse_from_str
fails to parse a Unicode "minus sign" character−
(U+2212
).rust playground
results in output
(using chrono version 0.4.22).
In some circumstances, chrono users must manually transform a found "minus sign" character
−
to "hyphen-minus" character-
.Solution
To more fully support the ISO 8601 standard, chrono should parse Unicode "minus sign" character
−
(U+2212
) in numeric timezone offsets, e.g.−07:00
.The text was updated successfully, but these errors were encountered: