Skip to content

docs: clarify error_handler_t::ignore UTF-8 behavior#5181

Closed
leno23 wants to merge 1 commit into
nlohmann:developfrom
leno23:docs/dump-error-handler-ignore-4552
Closed

docs: clarify error_handler_t::ignore UTF-8 behavior#5181
leno23 wants to merge 1 commit into
nlohmann:developfrom
leno23:docs/dump-error-handler-ignore-4552

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Align documentation with actual error_handler_t::ignore behavior during dump(): invalid UTF-8 sequences are skipped from the output, not copied byte-for-byte.

Updates dump.md, error_handler_t.md, and README.md. Points to #4552 and the proposed keep handler in #4555.

Motivation

Fixes confusion reported in #4552 without changing runtime semantics while #4555 is discussed.

Test plan

  • Documentation only.

Made with Cursor

@leno23 leno23 requested a review from nlohmann as a code owner May 17, 2026 16:49
Document that ignore skips invalid sequences during dump rather than
copying every byte unchanged (nlohmann#4552).
@nlohmann
Copy link
Copy Markdown
Owner

I do not like AI-generated documentation. The behavior right now is a bit buggy. It should be fixed or better exemplified. Linking issues is not helpful here.

@nlohmann nlohmann closed this May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants