Skip to content

Preserve input encoding when parsing time zones - #187

Merged
nobu merged 1 commit into
ruby:masterfrom
nobu:strptime-encoding
Aug 28, 2026
Merged

Preserve input encoding when parsing time zones#187
nobu merged 1 commit into
ruby:masterfrom
nobu:strptime-encoding

Conversation

@nobu

@nobu nobu commented Aug 28, 2026

Copy link
Copy Markdown
Member

Pass the input encoding through date__strptime so non-ASCII trailing data is treated as a parse failure instead of raising an encoding error.

Fixes #179.

Pass the input encoding through `date__strptime` so non-ASCII trailing
data is treated as a parse failure instead of raising an encoding error.

Fixes ruby#179.
@nobu
nobu force-pushed the strptime-encoding branch from c500744 to edf7cf0 Compare August 28, 2026 15:55
@nobu
nobu merged commit 156194d into ruby:master Aug 28, 2026
30 checks passed
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.

%z/%Z tags the remaining input as US-ASCII, so one non-ASCII byte raises ArgumentError instead of returning nil

1 participant