Re: servent: Add tests.

2024-12-30 Thread Bruno Haible via Gnulib discussion list
Collin Funk wrote: > Though, in practice I believe every OS (unsure about Windows) uses > /etc/services. So maybe it is best to just assume it will work normally > and improve the tests. Yes. You can, for example, use your GitHub ci-scratch repository to collect the data about various OSes in thei

Re: cgit .tar.gz code snapshots

2024-12-30 Thread fosslinux
On 12/29/24 23:38, Simon Josefsson wrote: sön 2024-12-29 klockan 21:18 +1100 skrev fosslinux: Could live-bootstrap start to use git cloning?  Maybe we can win this particular example, but I suspect the question will come back again. Without going into our technical structure - yes and no. Howev

Re: cgit .tar.gz code snapshots

2024-12-30 Thread fosslinux
Hi, On 12/30/24 05:32, Collin Funk wrote: fosslinux writes: Without going into our technical structure - yes and no. However, we are actively moving away from dynamically generated tarballs (to making them ourselves from Git clones), not just for gnulib, but for everything where we consume a G

servent: Add tests.

2024-12-30 Thread Collin Funk
I added a simple test for the servent module. All it does is check that the function prototypes of getservbyname and getservbyport are correct and that the functions can be called. Therefore it will fail if $(SERVENT_LIB) is set incorrectly. POSIX says [1]: This information [serivces] is cons

Re: servent: Add tests.

2024-12-30 Thread Collin Funk
Forgot to add attachment... >From e9c1d94f58eaacee919bb2015da490b980a5eedf Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 30 Dec 2024 19:00:01 -0800 Subject: [PATCH] servent: Add tests. * tests/test-servent.c: New file. * modules/servent-tests: New file. --- ChangeLog | 6 ++

Re: reproducible built files

2024-12-30 Thread Paul Eggert
On 12/29/24 08:29, Bruno Haible wrote: Re 1 + max: yes that makes sense, also for compensating a conversion to entire seconds, that loses fractional seconds. In TZDB releases all the files either correspond to a commit and therefore lack fractional seconds (because Git doesn't record frac

some doc patches

2024-12-30 Thread Bruno Haible via Gnulib discussion list
Three small doc patches: 2024-12-30 Bruno Haible doc: Revisit some index entries. * doc/attribute.texi: Refer to the 'attribute' module. * doc/verify.texi: Refer to the 'verify' module. * doc/noreturn.texi: Remove duplicate index entries. 2024-12-30 Bruno Hai

Re: mbfile: Allow 2 pushback characters

2024-12-30 Thread Bruno Haible via Gnulib discussion list
Adding a unit test for such pushback characters show that the EOF recognition must be done with lower priority than the pushback character test. 2024-12-30 Bruno Haible mbfile: Support pushback characters also right before EOF. * lib/mbfile.h (mbfile_multi_getc): Read pushed-b

bcp47: Handle language variants

2024-12-30 Thread Bruno Haible via Gnulib discussion list
This patch handles variants in BCP47 syntax. Currently the code maps "ca@valencia" to "ca", which is wrong. It should map it to "ca-valencia" instead. 2024-12-30 Bruno Haible bcp47: Handle language variants. Reported by Balló György at

mbfile: Allow 2 pushback characters

2024-12-30 Thread Bruno Haible via Gnulib discussion list
The 'mbfile' module currently allows 1 character of pushback. This is not always sufficient: In general, the number of pushback characters required depends on the lexer / parser built on top of it. 2024-12-30 Bruno Haible mbfile: Allow 2 pushback characters. * lib/mbfile.h: In