Skip to content
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

Check short/long weekday/month by char instead of byte #554

Conversation

UnicodingUnicorn
Copy link

Thanks for contributing to chrono!

  • Have you added yourself and the change to the changelog? (Don't worry
    about adding the PR number)
  • If this pull request fixes a bug, does it add a test that verifies that
    we can't reintroduce it?

When looking at Issue #531, I saw that for some reason when parsing short/long months/weekdays, chrono checks the string byte by byte instead of char by char, which gives up the ghost when Unicode gets involved. I don't know if it is some weird optimisation thing I don't get, but I changed it to check by char instead.

@pitdicker
Copy link
Collaborator

An alternative to this PR was merged in #1024.

@jtmoon79
Copy link
Contributor

jtmoon79 commented Apr 26, 2023

@UnicodingUnicorn you're welcome to add the two test assertions which I would Approve. But otherwise, according to @pitdicker this can be closed.

@djc djc closed this May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants