Re: mbcel module for Gnulib?, incomplete multibyte sequences

2023-07-17 Thread Paul Eggert
On 2023-07-16 15:18, Bruno Haible wrote: Paul Eggert wrote: Although I'm sure mbiter can be improved I don't see how it could catch up to mbcel so long as it continues to solve a harder problem than mbcel solves. I don't know exactly what you mean by "harder problem". I meant that it solves

[PATCH] announce-gen: Allow using local git user.name.

2023-07-17 Thread Simon Josefsson via Gnulib discussion list
Hi. I think announce-gen should use the username provided by the per-repo .git/config rather than the global ~/.gitconfig. I hit this corner on build farms where I don't want to modify files outside of the repository. /Simon From 6928b3b86169bf5d265f745ff5f93eb21181a59e Mon Sep 17 00:00:00 2001

mbuiter: Optimize

2023-07-17 Thread Bruno Haible
This patch moves the MB_CUR_MAX reference out of the mbuiter loop, and thereby provides a speedup between 1.5% and 2% (according to the bench-mbuiter benchmark). 2023-07-17 Bruno Haible mbuiter: Optimize. * lib/mbuiter.h (struct mbuiter_multi): Add cur_max field. (mbui

mbchar: Reduce size of 'struct mbchar'

2023-07-17 Thread Bruno Haible
This is a preparation for the modules 'mbitern' and 'mbuitern': 2023-07-17 Bruno Haible mbchar: Reduce size of 'struct mbchar'. * modules/mbfile (configure.ac): Define GNULIB_MBFILE as an indicator. * lib/mbchar.h (MBCHAR_BUF_SIZE): Set to 4. (struct mbchar): D

Re: From wchar_t to char32_t, new module mbszero

2023-07-17 Thread Bruno Haible
Running the test suite on Minix shows test failures. There, like on NetBSD, the source code investigation was incomplete. This patch fixes the failures. 2023-07-17 Bruno Haible mbszero: Fix for Minix. * lib/wchar.in.h: (_GL_MBSTATE_INIT_SIZE): Don't define on Minix. (_

Re: From wchar_t to char32_t, new module mbszero

2023-07-17 Thread Bruno Haible
Paul Eggert wrote: > > However, after implementing mbszero with this data and enabling its use > > in many places, I got test failures on NetBSD and Solaris. > >- On NetBSD, the minimum we need to clear is 28 bytes. > >- On Solaris OmniOS and OpenIndiana, the minimum we need to clear is 16