bug-libunistring
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-libunistring] u32_conv_from_encoding doesn't always respect lco


From: Rob Browning
Subject: Re: [bug-libunistring] u32_conv_from_encoding doesn't always respect lconveh_escape_sequence
Date: Thu, 11 Jul 2024 17:00:35 -0500

Bruno Haible <bruno@clisp.org> writes:

> This is expected, because for iconveh_escape_sequence to produce an \unnnn
> escape sequence, it would know what Unicode character it is. You gave "\xb5"
> which is not UTF-8, and no indication that it is ISO-8859-1. It could also
> be U+013E (in ISO-8859-2), U+2563 (in KOI8-R), and so on.

Ahh, I misunderstood -- I'd assumed that the escaping was for "any
undecodable bytes" with respect to the encoding, but looking at the docs
more carefully, I see that it does say character (and thinking about it
more carefully, also does use \u..., not \x...).

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]