Skip to content

Serialize YAML strings with non-UTF encodings safely - #298

Open
OskarEichler wants to merge 1 commit into
trailblazer:masterfrom
OskarEichler:codex/yaml-non-utf-strings
Open

Serialize YAML strings with non-UTF encodings safely#298
OskarEichler wants to merge 1 commit into
trailblazer:masterfrom
OskarEichler:codex/yaml-non-utf-strings

Conversation

@OskarEichler

Copy link
Copy Markdown

Handle binary and non-UTF scalar strings before Psych emission. Binary values use YAML binary and base64 and round-trip bytes; Latin-1 and UTF-16 transcode to UTF-8 instead of hanging or failing during emission.

Verified with exact and current suites and bounded dual-Ruby UTF-8, Latin-1, UTF-16 and raw-binary round-trip models.

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.

1 participant