Improve getopt error strings?

2024-10-26 Thread Michele Locati
Hello everybody, during the revision phase of the Italian .po files for gettext, another Italian translator (Daniele Forsi) suggested improvements for the getopt error strings [1]. 1. We have: "%s: invalid option -- '%c'\n" "%s: option requires an argument -- '%c'\n" Whereas other error messages

Re: all-permissive license notice

2024-10-17 Thread Michele Locati
> The all-permissive copyright + license notice that we currently use is: > > dnl Copyright (C) YEARS Free Software Foundation, Inc. > dnl This file is free software; the Free Software Foundation > dnl gives unlimited permission to copy and/or distribute it, > dnl with or without modificati

Re: shell scripts, spaces, and backslashes

2024-10-11 Thread Michele Locati
Il giorno ven 11 ott 2024 alle ore 11:00 Michele Locati ha scritto: > > > $ var='a\\bc\ d\\ef' > > $ printf '%s\n' $var > > a\\bc\ > > d\\ef > > And also: > > $ printf '%s\n' $var > a\\bc\ d\\ef Sorry, I meant printf '%s\n' "$var" a\\bc\ d\\ef

Re: shell scripts, spaces, and backslashes

2024-10-11 Thread Michele Locati
> $ var='a\\bc\ d\\ef' > $ printf '%s\n' $var > a\\bc\ > d\\ef And also: $ printf '%s\n' $var a\\bc\ d\\ef > Good luck understanding this! :D

Re: csharpexec, csharpcomp: Add support for dotnet

2024-10-09 Thread Michele Locati
> +for file in `cd "$dotnet_runtime_dir" && echo > [ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.dll`; do > + case "$file" in > +*.Native.*) ;; > +*) options_csc="$options_csc -reference:"`echo "$file" | sed -e > "$sed_quote_subst"` ;; > + esac > done Yep, that should work! Th

gettext 0.22.5a Windows binaries released

2024-10-02 Thread Michele Locati
I've just published the gettext 0.22.5a (and iconv 1.17) executables for Windows [1]. @Bruno: thank you for your valuable support! (And thanks to SignPath most of the binaries are now signed :P ) -- Michele [1] https://mlocati.github.io/articles/gettext-iconv-windows.html

Re: Tests fail in Windows with cygwin

2024-09-28 Thread Michele Locati
> > The error message from the main process is a consequence of the error > > in the child process. The comment says that apparently, non-blocking sockets > > don't work. The code in gnulib/lib/nonblocking.c uses Windows system calls > > with pipes. > > > > Maybe the cause is that in your CI you us

Re: Tests fail in Windows with cygwin

2024-09-27 Thread Michele Locati
> The error message from the main process is a consequence of the error > in the child process. The comment says that apparently, non-blocking sockets > don't work. The code in gnulib/lib/nonblocking.c uses Windows system calls > with pipes. > > Maybe the cause is that in your CI you use > > de

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
> That's because the Cygwin package named 'libiconv-devel' contains > the Cygwin binaries. What you need are the mingw binaries, which > you have to compile yourself (since they are not packaged [1][2]). That worked [1]! The only remaining failing test is not test-nonblocking-socket.sh: I'll try t

Re: Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
> > FAIL: test-u16-casecoll > > === > > ../../gltests/unicase/test-casecmp.h:34: assertion 'my_casecmp (input, > > SIZEOF (input), NULL, 0, NULL, nf, &cmp) == 0' failed > > FAIL test-u16-casecoll.exe (exit status: 3) > > These 28 failures are because you don't have an 'iconv' li

Tests fail in Windows with cygwin

2024-09-26 Thread Michele Locati
I'm building iconv+gettext for Windows with Cygwin and MinGW-w64 in a GitHub Action [1]. When running make check for gettext-tools, we have two failing tests [2]. In the test-suite.log file we have: FAIL: test-getopt-gnu = ../../../gettext-tools/gnulib-tests/test-getopt_long.h