Re: From wchar_t to char32_t

2023-07-12 Thread Bruno Haible
I wrote: > 7.32.2.2 > iswctype-- rarely used > wctype -- rarely used Well, 'fnmatch' and 'regex' uses iswctype and wctype. So, we need to have counterparts of these functions in the char32_t world. Since the ISO C names are idiosyncratic, let

Re: new module mbrtoc32-regular

2023-07-12 Thread Paul Eggert
On 2023-07-12 12:45, Bruno Haible wrote: I would feel more confident if this would be discussed on libc-alpha sooner than later Fair enough, I'll try to remember to do that after the next release.

Re: new module mbrtoc32-regular

2023-07-12 Thread Bruno Haible
Paul Eggert wrote: > > Well, since I reported > > https://sourceware.org/bugzilla/show_bug.cgi?id=30611 , > > I expect to see a change in glibc behaviour in this area. But binaries > > compiled with a current glibc should continue to work fine with future > > glibc versions. This means, we cannot

Re: mbcel module for Gnulib?

2023-07-12 Thread Paul Eggert
On 2023-07-11 15:14, Bruno Haible wrote: The performance problems that I see are: - glibc's conversion functions are optimized for long sequences (think of iconv()). They are not optimized for short invocations (one multibyte character or less). This is a long-standing problem,

Re: new module mbrtoc32-regular

2023-07-12 Thread Paul Eggert
On 2023-07-11 11:39, Bruno Haible wrote: Paul Eggert wrote: Even if mbsinit returns nonzero, things are still OK if further scanning behaves as if the mbstate_t were all zero. Although this implementation behavior would be silly, POSIX doesn't prohibit it we don't need to bother about this situ

mbiter, mbuiter: Small optimization

2023-07-12 Thread Bruno Haible
If mbrtoc32 is regular, mbiter and mbuiter can be optimized further: The mbstate_t is essentially always in an initial state; we can thus omit the associated bookkeeping. 2023-07-12 Bruno Haible mbiter, mbuiter: Small optimization. * lib/mbiter.h: Optimize away the in_shift fi

Re: Take account of splitting option in gendocs.sh

2023-07-12 Thread Bruno Haible
Gavin Smith wrote: > I've made minor changes to the patch as specified in Karl's response below. > Please can this be applied? Thanks for having taken into account both my and Karl's comments. I have applied your patch. Bruno

Re: Take account of splitting option in gendocs.sh

2023-07-12 Thread Gavin Smith
On Sun, Mar 26, 2023 at 04:11:45PM -0600, Karl Berry wrote: > + gendocs: support chapter- and section-level split > > Seems sensible to me. Basically making the html-by-node part of the > template conditional along with the other split options? > > (Overall, it seems to me that several of the