Jean Boussier 0d62037fc0
[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
2025-02-27 13:32:32 +09:00
..
2024-12-16 03:31:55 +00:00
2024-12-09 14:06:05 +09:00
2024-11-07 18:45:05 +09:00
2024-12-03 05:05:14 +00:00
2024-12-25 13:16:14 +09:00
2025-02-19 09:47:28 -05:00
2024-11-06 07:09:08 +00:00
2025-01-14 17:20:02 +09:00
2024-12-13 00:33:58 +00:00