On Thu, Nov 21, 2024 at 2:27 PM Bertrand Drouvot
<bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
+ /*
+ * If the original name is too long and we see two consecutive bytes
+ * with their high bits set at the truncation point, we might have
+ * truncated in the middle of a multibyte character. In multibyte
+ * encodings, every byte of a multibyte character has its high bit
+ * set.
Counterexample: Shift JIS -- I don't think we can short-circuit the full check.
--
John Naylor
Amazon Web Services