bug#56413: [PATCH v2 1/1] scm_i_utf8_string_hash: compute u8 chars not bytes

2023-03-06 Thread Ludovic Courtès
Hi, Rob Browning skribis: > Noticed while investigating a migration to utf-8 strings. After making > changes that routed non-ascii symbol hashing through this function, > encoding-iso88597.test began intermittently failing because it would > traverse trailing garbage when u8_strnlen reported 8

bug#56413: [PATCH v2 1/1] scm_i_utf8_string_hash: compute u8 chars not bytes

2023-03-05 Thread Rob Browning
Noticed while investigating a migration to utf-8 strings. After making changes that routed non-ascii symbol hashing through this function, encoding-iso88597.test began intermittently failing because it would traverse trailing garbage when u8_strnlen reported 8 chars instead of 4. Change the