mariobob
8945f6fad4
sceCcc: Stop string conversions at invalid input
...
When the input starts with something it can't decode, each of the six
string converters returns 0 on the PSP and writes only the terminator
(ccc/convertstring, all six "Invalid data" cases). We decoded on
regardless and wrote replacement or garbage characters for every unit.
Stop at the first invalid character instead: for UTF-8, a byte that can't
start a sequence (UTF8::invalid()); for UTF-16 and Shift-JIS, INVALID from
the decoder. Valid characters the tables can't map still get the error
character, as before.
ccc/convertstring passes now and moves to tests_good.
2026-10-16 22:05:12 +02:00
..
2026-10-16 18:16:33 +02:00
2026-10-12 10:52:46 +02:00
2026-10-15 15:39:11 +02:00
2026-10-13 15:48:58 +02:00
2026-10-09 15:32:06 +02:00
2026-09-28 09:34:06 -06:00
2026-10-16 22:05:12 +02:00
2026-10-13 12:13:42 +02:00
2026-10-16 18:16:33 +02:00
2026-10-15 11:02:17 +02:00
2026-10-15 14:42:00 +02:00
2026-10-16 10:59:54 +02:00
2026-10-16 10:59:54 +02:00
2026-10-15 00:38:49 +02:00
2026-10-15 00:38:49 +02:00
2026-10-16 13:27:26 +02:00
2026-10-16 13:27:26 +02:00
2026-08-31 16:37:55 +02:00
2026-08-31 16:37:55 +02:00
2026-10-16 13:27:26 +02:00
2026-09-03 12:37:31 -06:00
2026-09-03 12:37:31 -06:00
2026-10-16 18:16:33 +02:00
2026-10-15 17:03:12 +02:00
2026-10-15 14:42:00 +02:00
2026-10-15 14:42:00 +02:00
2026-10-16 01:12:38 +02:00
2026-10-13 12:13:42 +02:00
2026-08-18 09:32:04 +02:00
2026-10-15 18:27:33 +02:00
2026-10-15 18:27:33 +02:00
2026-10-08 15:29:12 +02:00
2026-10-08 15:29:12 +02:00
2026-08-31 12:53:34 +02:00
2026-10-09 13:26:22 +02:00
2026-10-09 13:26:22 +02:00
2026-09-04 13:10:54 -06:00
2026-10-12 12:27:24 +02:00
2026-10-12 12:27:24 +02:00
2026-08-31 12:22:28 +02:00
2026-10-15 17:41:53 +02:00
2026-08-18 13:42:14 +02:00
2026-10-12 19:08:03 +02:00
2026-10-11 10:33:30 +02:00
2026-10-13 12:13:42 +02:00
2026-10-15 15:45:45 +02:00
2026-10-13 02:21:14 +02:00
2026-10-01 10:26:00 -06:00
2026-10-01 10:26:00 -06:00
2026-10-13 02:24:19 +02:00
2026-09-12 13:58:20 -06:00
2026-10-13 02:24:11 +02:00
2026-08-30 22:45:50 +02:00
2026-10-11 17:40:01 +02:00
2026-10-16 12:37:11 +02:00
2026-10-08 12:33:09 +02:00
2026-10-16 18:14:44 +02:00
2026-10-13 12:13:42 +02:00
2026-08-20 00:40:41 +02:00
2026-10-05 13:39:06 -06:00