Files
Johannes Altmanninger bc3e3ae029 builtin read: always handle out-of-range codepoints (Rust port regression)
As mentioned in
https://github.com/fish-shell/fish-shell/pull/9688#discussion_r1155089596,
commit b77d1d0e2b (Stop crashing on invalid Unicode input, 2024-02-27), Rust's
char type doesn't support arbitrary 32-bit values.  Out-of-range Unicode
codepoints would cause crashes.  That commit addressed this by converting
the encoded bytes (e.g. UTF-8) to special private-use-area characters that
fish knows about.  It didn't bother to update the code path in builtin read
that relies on mbrtowc as well.

Fix that. Move and rename parse_codepoint() and rename/reorder its input/output
parameters.

Fixes #11383

(cherry picked from commit d9ba27f58f)
2025-04-16 11:33:15 +02:00
..
2024-12-06 22:12:26 +01:00
2025-03-05 22:35:01 +01:00
2024-05-06 14:59:36 -05:00
2024-11-30 12:21:30 -08:00
2024-06-29 18:03:52 -07:00
2025-01-17 10:02:32 +01:00
2024-08-27 14:28:00 +02:00
2024-08-27 14:28:00 +02:00
2024-10-09 12:36:58 +02:00
2024-04-29 22:00:59 +02:00
2024-09-22 14:02:55 -07:00
2024-01-13 08:52:54 +01:00
2024-08-27 14:28:00 +02:00
2024-08-27 14:28:00 +02:00
2024-08-27 14:28:00 +02:00
2025-01-30 16:27:31 +01:00
2025-01-27 06:59:18 +01:00
2024-11-17 17:03:34 -08:00
2024-01-13 03:58:33 +01:00
2024-06-29 18:03:52 -07:00
2024-12-23 17:01:04 +01:00
2024-06-29 18:03:52 -07:00
2024-08-27 14:28:00 +02:00
2024-11-22 16:30:10 -06:00