bug-libunistring
[Top][All Lists]
Advanced

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

[bug-libunistring] u32_conv_from_encoding doesn't always respect lconveh


From: Rob Browning
Subject: [bug-libunistring] u32_conv_from_encoding doesn't always respect lconveh_escape_sequence
Date: Wed, 10 Jul 2024 19:23:17 -0500

This call appears to end up taking the "indirectly" "?" path in
mem_cd_iconveh_internal, even though it asks for
iconveh_escape_sequence:

  size_t u32len = 0;
  const char *str = "\xb5"; // ISO-8859-1 Greek Mu
  wchar_t *u32 = u32_conv_from_encoding ("utf8", iconveh_escape_sequence,
                                         str, strlen(str), NULL, NULL, &u32len);

Also seen via:

  guile -c '(write (program-arguments)) (newline)' $'\xb5'

in a UTF-8 locale, which (eventually) makes a similar call.

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]