summaryrefslogtreecommitdiff
path: root/include/ruby/io
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-02-25 17:12:26 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-02-27 13:32:32 +0900
commit0d62037fc0626855c36359e4a8a02936b592f9d9 (patch)
tree1c79a61b620ea9e270d2903d4532616b1ba2d30e /include/ruby/io
parent75f07afd1897a81a18d3e40b57e8a5731d455827 (diff)
[ruby/json] Ensure parser error snippets are valid UTF-8
Fix: https://github.com/ruby/json/issues/755 Error messages now include a snippet of the document that doesn't parse to help locate the issue, however the way it was done wasn't UTF-8 aware, and it could result in exception messages with truncated characters. It would be nice to go a bit farther and actually support codepoints, but it's a lot of complexity to do it in C, perhaps if we move that logic to Ruby given it's not a performance sensitive codepath. https://github.com/ruby/json/commit/e144793b72
Diffstat (limited to 'include/ruby/io')
0 files changed, 0 insertions, 0 deletions