[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c32width gives incorrect return values in C locale
From: |
Patrice Dumas |
Subject: |
Re: c32width gives incorrect return values in C locale |
Date: |
Mon, 13 Nov 2023 10:28:35 +0100 |
On Sat, Nov 11, 2023 at 11:54:52PM +0100, Bruno Haible wrote:
>
> These types are all identical. Therefore you don't even need to cast.
>
> - char32_t comes from <uchar.h> (ISO C 11 or newer).
> - ucs4_t comes from GNU libunistring.
> - uint32_t comes from <stdint.h>.
According to your mail
https://lists.gnu.org/archive/html/bug-libunistring/2023-11/msg00000.html
char32_t is less portable, and indeed, the solaris automatic build sees
to fail because of char32_t is not available, while uint32_t and ucs4_t
are necessarily present with libunistring unless I issed something. So
it would probably be more portable to use uint32_t/ucs4_t, though it may
be less practical if a conversion is needed before they can be used.
--
Pat
- Re: Locale-independent paragraph formatting, Gavin Smith, 2023/11/09
- Fwd: Locale-independent paragraph formatting, Gavin Smith, 2023/11/10
- c32width gives incorrect return values in C locale, Gavin Smith, 2023/11/11
- Re: c32width gives incorrect return values in C locale, Bruno Haible, 2023/11/11
- Re: c32width gives incorrect return values in C locale, Gavin Smith, 2023/11/11
- Re: c32width gives incorrect return values in C locale, Bruno Haible, 2023/11/11
- Re: c32width gives incorrect return values in C locale, Eli Zaretskii, 2023/11/12
- Re: c32width gives incorrect return values in C locale, Gavin Smith, 2023/11/12
- Re: c32width gives incorrect return values in C locale,
Patrice Dumas <=
- Re: c32width gives incorrect return values in C locale, Gavin Smith, 2023/11/13
- Re: c32width gives incorrect return values in C locale, Paul Eggert, 2023/11/15
- Re: c32width gives incorrect return values in C locale, Patrice Dumas, 2023/11/15
- Re: c32width gives incorrect return values in C locale, Gavin Smith, 2023/11/18
- Re: c32width gives incorrect return values in C locale, Patrice Dumas, 2023/11/18
- Re: c32width gives incorrect return values in C locale, Patrice Dumas, 2023/11/18
- Re: c32width gives incorrect return values in C locale, Dagobert Michelsen, 2023/11/19