]> Savannah Git Hosting - gnulib.git/log
gnulib.git
22 months agostriconveh: Fix module description.
Bruno Haible [Tue, 27 Jun 2023 11:25:33 +0000 (13:25 +0200)]
striconveh: Fix module description.

* modules/striconveh (Link): Add $(LIBUNISTRING).
* modules/striconveha (Link): New section.
* modules/xstriconveh (Link): New section.

22 months agostrncat: Update doc regarding Solaris 11.4.
Bruno Haible [Sun, 25 Jun 2023 18:42:59 +0000 (20:42 +0200)]
strncat: Update doc regarding Solaris 11.4.

* doc/posix-functions/strncat.texi: Mention that the bug still exists on
Solaris 11.4.
* m4/strncat.m4 (gl_FUNC_STRNCAT): Update comments.

22 months agothread: Avoid compiler warnings on Solaris.
Bruno Haible [Sun, 25 Jun 2023 18:18:41 +0000 (20:18 +0200)]
thread: Avoid compiler warnings on Solaris.

* lib/glthread/thread.h: Include <stdint.h>.
(gl_thread_self_pointer): Do the cast from pthread_t to 'void *' via
intptr_t.
* modules/thread (Depends-on): Add stdint.

22 months agostrerrorname_np: Add support for Solaris 11.4/sparc.
Bruno Haible [Sun, 25 Jun 2023 17:11:26 +0000 (19:11 +0200)]
strerrorname_np: Add support for Solaris 11.4/sparc.

* lib/strerrorname_np.c (strerrorname_np): Consider ECKSUM, EFRAGS.
Allow ENOANO to be overloaded to another value.
* tests/test-strerrorname_np.c (main): Likewise.

22 months agodoc: correct doubled "on on"
Jim Meyering [Sun, 25 Jun 2023 16:58:55 +0000 (09:58 -0700)]
doc: correct doubled "on on"

* doc/glibc-functions/initstate_r.texi: As above.
* doc/posix-functions/initstate.texi: As above.

22 months agosigdescr_np tests: Avoid test failure on glibc/sparc.
Bruno Haible [Sun, 25 Jun 2023 16:40:19 +0000 (18:40 +0200)]
sigdescr_np tests: Avoid test failure on glibc/sparc.

* tests/test-sigdescr_np.c (main): Accept the glibc result for SIGEMT.
* doc/glibc-functions/sigdescr_np.texi: Mention two glibc deficiencies.

22 months agostrerrorname_np: Work around glibc bug on PowerPC, SPARC systems.
Bruno Haible [Sun, 25 Jun 2023 16:19:06 +0000 (18:19 +0200)]
strerrorname_np: Work around glibc bug on PowerPC, SPARC systems.

* m4/strerrorname_np.m4 (gl_FUNC_STRERRORNAME_NP): Test also
strerrorname_np (EDEADLOCK).
* doc/glibc-functions/strerrorname_np.texi: Mention that glibc 2.36
still needs a workaround.

22 months agodoc: Mention glibc initstate, initstate_r bug.
Bruno Haible [Sun, 25 Jun 2023 15:58:57 +0000 (17:58 +0200)]
doc: Mention glibc initstate, initstate_r bug.

* doc/posix-functions/initstate.texi: Mention glibc bug.
* doc/glibc-functions/initstate_r.texi: Likewise.
* tests/test-random_r.c: Add a comment.

22 months agodoc: Update doc regarding 'setstate'.
Bruno Haible [Sun, 25 Jun 2023 14:06:52 +0000 (16:06 +0200)]
doc: Update doc regarding 'setstate'.

* doc/posix-functions/setstate.texi: Mention also Solaris 11.4.

22 months agodoc: Update doc regarding <ieee754.h>.
Bruno Haible [Sun, 25 Jun 2023 13:54:56 +0000 (15:54 +0200)]
doc: Update doc regarding <ieee754.h>.

* doc/glibc-headers/ieee754.texi: Mention that it's not present on
glibc/sparc64 in 32-bit mode.

22 months agoexclude: Complete last change.
Bruno Haible [Sun, 25 Jun 2023 08:29:47 +0000 (10:29 +0200)]
exclude: Complete last change.

* lib/exclude.c: Include <uchar.h> instead of <wctype.h>.

22 months agomake -C doc INSTALL.ISO INSTALL.UTF-8
Paul Eggert [Sat, 24 Jun 2023 22:24:43 +0000 (15:24 -0700)]
make -C doc INSTALL.ISO INSTALL.UTF-8

22 months ago* build-aux/gitlog-to-changelog: don’t quote `like this'
Paul Eggert [Sat, 24 Jun 2023 22:00:37 +0000 (15:00 -0700)]
* build-aux/gitlog-to-changelog: don’t quote `like this'

22 months agoautoupdate; cd doc; make INSTALL
Paul Eggert [Sat, 24 Jun 2023 21:47:08 +0000 (14:47 -0700)]
autoupdate; cd doc; make INSTALL

22 months agombchar, mbiter, mbuiter: Overcome wchar_t limitations.
Bruno Haible [Sat, 24 Jun 2023 15:40:12 +0000 (17:40 +0200)]
mbchar, mbiter, mbuiter: Overcome wchar_t limitations.

* lib/mbchar.h: Include <uchar.h> instead of <wchar.h>, <wctype.h>.
(struct mbchar): Use char32_t instead of wchar_t.
(mb_casecmp, mb_caseequal): Use c32tolower instead of towlower.
(mb_isalnum): Use c32isalnum instead of iswalnum.
(mb_isalpha): Use c32isalpha instead of iswalpha.
(mb_isblank): Use c32isblank instead of iswblank.
(mb_iscntrl): Use c32iscntrl instead of iswcntrl.
(mb_isdigit): Use c32isdigit instead of iswdigit.
(mb_isgraph): Use c32isgraph instead of iswgraph.
(mb_islower): Use c32islower instead of iswlower.
(mb_isprint): Use c32isprint instead of iswprint.
(mb_ispunct): Use c32ispunct instead of iswpunct.
(mb_isspace): Use c32isspace instead of iswspace.
(mb_isupper): Use c32isupper instead of iswupper.
(mb_isxdigit): Use c32isxdigit instead of iswxdigit.
(mb_width_aux): Use c32width, c32iscntrl instead of wcwidth, iswcntrl.
* lib/mbiter.h: Include <uchar.h> instead of <wchar.h>.
(mbiter_multi_next): Use mbrtoc32 instead of mbrtowc.
* lib/mbuiter.h: Include <uchar.h> instead of <wchar.h>.
(mbuiter_multi_next): Use mbrtoc32 instead of mbrtowc.
* lib/mbfile.h (mbfile_multi_getc): Use mbrtoc32 instead of mbrtowc.
* lib/mbscasestr.c (knuth_morris_pratt_multibyte, mbscasestr): Use
c32tolower instead of towlower.
* lib/exclude.c (string_hasher_ci): Use char32_t, c32tolower instead of
wchar_t, towlower.
* modules/mbchar (Depends-on): Add uchar, c32isalnum, c32isalpha,
c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
c32ispunct, c32isspace, c32isupper, c32isxdigit, c32tolower, c32width.
Remove wchar, wctype-h, iswblank, iswdigit, iswxdigit, wcwidth.
* modules/mbiter (Depends-on): Add mbrtoc32, uchar. Remove mbrtowc,
wchar.
* modules/mbuiter (Depends-on): Likewise.
* modules/mbscasestr (Depends-on): Add c32tolower.
* modules/exclude (Depends-on): Add c32tolower.
* doc/strings.texi (C strings): Fix typo.

22 months agoautoupdate
Karl Berry [Sat, 24 Jun 2023 16:24:50 +0000 (09:24 -0700)]
autoupdate

22 months agodoc: Use makeinfo option to check menu structure.
Bruno Haible [Thu, 22 Jun 2023 16:30:08 +0000 (18:30 +0200)]
doc: Use makeinfo option to check menu structure.

Trick revealed by Patrice Dumas <pertusus@free.fr> in
<https://lists.gnu.org/archive/html/bug-texinfo/2023-06/msg00015.html>.

* doc/Makefile (MAKEINFO): Enforce checking of menu structure.

22 months agodoc: Correct info menu structure.
Bruno Haible [Thu, 22 Jun 2023 13:00:03 +0000 (15:00 +0200)]
doc: Correct info menu structure.

Reported by Elijah Zarezky <elijah@zarezky.spb.ru> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-06/msg00105.html>.

* doc/strings.texi (Strings): Add missing @menu item.

22 months agodoc: make -C doc INSTALL.ISO INSTALL.UTF8
Paul Eggert [Tue, 20 Jun 2023 21:51:10 +0000 (14:51 -0700)]
doc: make -C doc INSTALL.ISO INSTALL.UTF8

22 months agoautoupdate
Paul Eggert [Tue, 20 Jun 2023 21:50:35 +0000 (14:50 -0700)]
autoupdate

22 months agodoc: INSTALL uses UTF-8 now
Paul Eggert [Tue, 20 Jun 2023 21:46:29 +0000 (14:46 -0700)]
doc: INSTALL uses UTF-8 now

* doc/Makefile (INSTALL.ISO, INSTALL.UTF-8):
Adjust to the fact that INSTALL now uses UTF-8.
INSTALL.UTF-8 is now obsolescent since it is identical.
(INSTALL.ISO): Transliterate all non-ASCII characters,
not just single quotes.
* doc/INSTALL.ISO: Regenerate.

22 months agoautoupdate
Karl Berry [Tue, 20 Jun 2023 14:40:24 +0000 (07:40 -0700)]
autoupdate

22 months agolargefile: port to GNU/Linux alpha and s390x
Paul Eggert [Mon, 19 Jun 2023 21:08:06 +0000 (14:08 -0700)]
largefile: port to GNU/Linux alpha and s390x

This patch syncs from Autoconf master.
Problem reported by Matoro <https://bugs.gnu.org/64123>.
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_TEST_CODE):
New overridable macro FTYPE, to test types other than off_t.
(_AC_SYS_LARGEFILE_TEST_CODE): Test ino_t for
-D_FILE_OFFSETBITS=64 too, if no flags are needed for off_t.
Needed for GNU/Linux on alpha and s390x.

22 months agodoc: Corrections to the "Strings and Characters" chapter.
Bruno Haible [Mon, 19 Jun 2023 17:23:51 +0000 (19:23 +0200)]
doc: Corrections to the "Strings and Characters" chapter.

Suggested by Paul Eggert.

* doc/strings.texi: Corrections: GB18030 is rarely used nowadays.
<ctype.h> functions can be useful for specific data.

22 months agodoc: Use "spaced en dash" style instead of "spaced em dash" style.
Bruno Haible [Mon, 19 Jun 2023 17:00:58 +0000 (19:00 +0200)]
doc: Use "spaced en dash" style instead of "spaced em dash" style.

Suggested by Paul Eggert.

* doc/gnulib.texi: At sentence level, use "spaced en dash" style instead
of "spaced em dash" style.
* doc/gnulib-intro.texi: Likewise.
* doc/multithread.texi: Likewise.
* doc/strings.texi: Likewise.

22 months agosetenv: Simplify m4 requires.
Bruno Haible [Mon, 19 Jun 2023 14:42:09 +0000 (16:42 +0200)]
setenv: Simplify m4 requires.

* m4/setenv.m4 (gl_PREREQ_SETENV): Don't require AC_FUNC_ALLOCA.

22 months agoconfigmake: Bypass the unusable 'echo' command of some shells.
Bruno Haible [Sun, 18 Jun 2023 20:37:32 +0000 (22:37 +0200)]
configmake: Bypass the unusable 'echo' command of some shells.

Reported by Brian Inglis <Brian.Inglis@Shaw.ca> in
<https://lists.gnu.org/archive/html/bug-gettext/2023-06/msg00054.html>.

* m4/build-to-host.m4 (gl_BUILD_TO_HOST): Use 'printf' instead of
'echo', because the "dash" shell has a SystemV compatible 'echo'
command. Also, be sure to remove trailing CRs.

22 months agoupdate-copyright tests: fix to match behavior
Paul Eggert [Sun, 18 Jun 2023 17:49:10 +0000 (10:49 -0700)]
update-copyright tests: fix to match behavior

* tests/test-update-copyright.sh: Change tests to match new behavior.

22 months agoupdate-copyright tests: Add tests for man pages.
Bruno Haible [Sun, 18 Jun 2023 11:41:46 +0000 (13:41 +0200)]
update-copyright tests: Add tests for man pages.

* tests/test-update-copyright.sh: Add 4 tests that use man page syntax.

22 months agogettext: Clarify the purpose of this module.
Bruno Haible [Sun, 18 Jun 2023 11:09:39 +0000 (13:09 +0200)]
gettext: Clarify the purpose of this module.

Suggested by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-06/msg00089.html>.

* modules/gettext (Description): Clarify the purpose.
(Makefile.am): Remove outdated comment. "gettextize --intl" is no longer
possible since 2019.

22 months agoUpdate \(en in copyright notices
Paul Eggert [Sun, 18 Jun 2023 07:27:52 +0000 (00:27 -0700)]
Update \(en in copyright notices

* build-aux/update-copyright (ndash_re): New var, matching \(en too.
(stmt_remainder_re, stmt): Use it.
(stmt): Match year in constructs like "\(en2023".
(ndash): Now \(en in man pages.

22 months agogettext: Update to gettext 0.22.
Bruno Haible [Sat, 17 Jun 2023 14:10:39 +0000 (16:10 +0200)]
gettext: Update to gettext 0.22.

* modules/gettext (Files): Add m4/build-to-host.m4.
(configure.ac): Request infrastructure compatible with gettext 0.22.
* m4/gettext.m4: Update from gettext 0.22.
* m4/po.m4: Likewise.

22 months ago* lib/limits.in.h: Fix comment typo.
Paul Eggert [Thu, 15 Jun 2023 19:22:33 +0000 (12:22 -0700)]
* lib/limits.in.h: Fix comment typo.

22 months agoaligned-malloc, rmdir-errno: Sanitize configuration test result.
Bruno Haible [Thu, 15 Jun 2023 06:38:48 +0000 (08:38 +0200)]
aligned-malloc, rmdir-errno: Sanitize configuration test result.

* m4/malloc-align.m4 (gl_MALLOC_ALIGNMENT): Don't put a newline at the
end of the conftest.out file.
* m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Don't put a newline at the
end of the confdir2/errno file.

22 months agoMake internationalization tests stricter on musl systems.
Bruno Haible [Tue, 13 Jun 2023 23:30:47 +0000 (01:30 +0200)]
Make internationalization tests stricter on musl systems.

* m4/locale-fr.m4 (gt_LOCALE_FR): On musl systems, set LOCALE_FR_UTF8 to
"fr_FR.UTF-8" instead of "none". Set and substitute
LC_COLLATE_IMPLEMENTED, LC_NUMERIC_IMPLEMENTED, LC_TIME_IMPLEMENTED,
LC_MONETARY_IMPLEMENTED.
* m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Skip testing a certain locale if
that locale is "none".
* m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
* m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
* m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
* m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
* m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
--
* tests/test-c32isalpha.c (main): On musl libc, disable tests that fail.
* tests/test-c32iscntrl.c (main): Likewise.
* tests/test-c32isgraph.c (main): Likewise.
* tests/test-c32islower.c (main): Likewise.
* tests/test-c32isprint.c (main): Likewise.
* tests/test-c32toupper.c (main): Likewise.
* tests/test-nl_langinfo1.c (main): Likewise.
* tests/test-nl_langinfo2.c (main): Likewise.
* modules/c32isalpha-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/c32iscntrl-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/c32isgraph-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/c32islower-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/c32isprint-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/c32toupper-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* modules/nl_langinfo-tests (Files): Add musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
--
* tests/test-strtod1.sh: Skip the test if LC_NUMERIC_IMPLEMENTED is
false.
* tests/test-strtold1.sh: Likewise.
* tests/test-vasnprintf-posix2.sh: Likewise.
* tests/test-vasnwprintf-posix2.sh: Likewise.
* modules/strtod-tests (Makefile.am): Set LC_NUMERIC_IMPLEMENTED in the
tests environment.
* modules/strtold-tests (Makefile.am): Likewise.
* modules/vasnprintf-posix-tests (Makefile.am): Likewise.
* modules/vasnwprintf-posix-tests (Makefile.am): Likewise.

22 months agovasnwprintf-posix: Work around another musl libc bug.
Bruno Haible [Mon, 12 Jun 2023 16:39:49 +0000 (18:39 +0200)]
vasnwprintf-posix: Work around another musl libc bug.

* m4/printf.m4 (gl_SWPRINTF_DIRECTIVE_LC): New macro.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke it, and set
NEED_WPRINTF_DIRECTIVE_LC if the %lc test failed.
* lib/vasnprintf.c (VASNPRINTF): If NEED_WPRINTF_DIRECTIVE_LC is set, do
the processing for %lc and %ls ourselves.
(local_wcslen): Update condition.
* doc/posix-functions/swprintf.texi: Mention the %lc problem.

22 months agovasnwprintf-posix: Work around a musl libc bug.
Bruno Haible [Mon, 12 Jun 2023 14:48:03 +0000 (16:48 +0200)]
vasnwprintf-posix: Work around a musl libc bug.

* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Test also whether swprintf
in the C locale is free of encoding errors, and set
NEED_WPRINTF_DIRECTIVE_C if not.
* doc/posix-functions/swprintf.texi: Clarify the list of platforms for
the %c problem.

22 months agovasnwprintf: Fix some cross-compilation results.
Bruno Haible [Mon, 12 Jun 2023 13:07:40 +0000 (15:07 +0200)]
vasnwprintf: Fix some cross-compilation results.

* m4/printf.m4 (gl_SWPRINTF_WORKS): Fix cross-compilation result for
musl.
(gl_SWPRINTF_DIRECTIVE_LA): Fix cross-compilation result for Android.

22 months agowarnings: Save memory and CPU time when inhibiting all warnings.
Bruno Haible [Mon, 12 Jun 2023 12:00:42 +0000 (14:00 +0200)]
warnings: Save memory and CPU time when inhibiting all warnings.

* m4/warnings.m4 (gl_WARN_ADD): Improve comments.
(gl_CC_INHIBIT_WARNINGS): Add also '-fno-analyzer' to
GL_CFLAG_INHIBIT_WARNINGS.
(gl_CXX_INHIBIT_WARNINGS): Add also '-fno-analyzer' to
GL_CXXFLAG_INHIBIT_WARNINGS.

22 months agojavacomp-script, javacomp: Document effects of yesterday's change.
Bruno Haible [Sun, 11 Jun 2023 22:57:35 +0000 (00:57 +0200)]
javacomp-script, javacomp: Document effects of yesterday's change.

* NEWS: Mention yesterday's change.

22 months agojavacomp-script, javacomp: Silence javac warnings regarding [options].
Bruno Haible [Sun, 11 Jun 2023 22:42:05 +0000 (00:42 +0200)]
javacomp-script, javacomp: Silence javac warnings regarding [options].

* m4/javacomp.m4 (gt_JAVACOMP): Use option '-Xlint:-options' by default
and omit it only when it does not work.
* lib/javacomp.c (compile_using_javac): Add nowarn_option parameter.
(is_envjavac_usable): Add nowarn_option_out parameter. Use option
'-Xlint:-options' by default and omit it only when it does not work.
(is_javac_usable): Likewise.
(compile_java_class): Store the nowarn_option returned from
is_envjavac_usable and use it when invoking compile_using_envjavac.
Store the nowarn_option returned from is_javac_usable and use it when
invoking compile_using_javac.

22 months agoautoupdate
Karl Berry [Sun, 11 Jun 2023 15:03:17 +0000 (08:03 -0700)]
autoupdate

22 months agojavacomp-script, javacomp: Add support for javac versions > 11.
Bruno Haible [Sun, 11 Jun 2023 01:13:29 +0000 (03:13 +0200)]
javacomp-script, javacomp: Add support for javac versions > 11.

Reported by Adrian Bunk <bunk-gnu@fs.tum.de> in
<https://savannah.gnu.org/bugs/?63385>.

* m4/javacomp.m4 (gt_JAVACOMP): When the java version is > 11, use that
version as target_version, not 11. When the java version is > 17, don't
warn. Remove goodcode, failcode variables. Don't bail out if the
source-version argument or the target-version argument is in the range
12..99. Use a heuristic that works with javac versions 11..20 at least.
Update comments.
* lib/javacomp.h (compile_java_class): State that source-version and
target-version may be larger than 11.
* lib/javacomp.c (default_target_version): Accommodate versions up to
99.
(SOURCE_VERSION_BOUND): Increase to 94.
(source_version_index): Accept versions up to 99.
(get_goodcode_snippet, get_failcode_snippet): Remove functions.
(TARGET_VERSION_BOUND): Increase to 94.
(target_version_index): Accept versions up to 99.
(corresponding_classfile_version): Remove function.
(execute_and_read_line): New function, based on lib/javaversion.c.
(get_compiler_version): New function.
(is_envjavac_usable): Add parameters source_option_out,
target_option_out. Use a heuristic that works with javac versions 11..20
at least. Call cleanup_temp_dir.
(is_javac_usable): Likewise.
(compile_java_class): Update.

22 months agojavacomp-script, javacomp: Remove support for javac versions < 1.6.
Bruno Haible [Sun, 11 Jun 2023 01:13:24 +0000 (03:13 +0200)]
javacomp-script, javacomp: Remove support for javac versions < 1.6.

* m4/javacomp.m4 (gt_JAVACOMP): State that the minimum source_version
and the minimum target_version are 1.6. Map smaller values to 1.6.
Complain if the java version is < 1.6. Use 1.6 as default, instead of
1.1. Don't bother trying the -target option alone.
* lib/javacomp.h (compile_java_class): State that the minimum
source_version and the minimum target_version are 1.6.
* lib/javacomp.c (default_target_version): Complain if the java version
is < 1.6. Use 1.6 as default, instead of 1.1.
(SOURCE_VERSION_BOUND, source_version_index, get_goodcode_snippet,
get_failcode_snippet): Adjust to the new minimum source_version = 1.6.
(TARGET_VERSION_BOUND, target_version_index,
corresponding_classfile_version): Adjust to the new minimum
target_version = 1.6.
(get_source_version_for_javac): Remove function.
(is_envjavac_usable): Remove source_version_for_javac parameter. Don't
bother trying the -target option alone.
(is_javac_usable): Likewise.
(compile_java_class): Map source_version < 1.6 to 1.6. Map
target_version < 1.6 to 1.6. Use source_version instead of calling
get_source_version_for_javac.

22 months agojavacomp: Simplify after gcj support was removed.
Bruno Haible [Sun, 11 Jun 2023 01:08:53 +0000 (03:08 +0200)]
javacomp: Simplify after gcj support was removed.

* m4/javacomp.m4 (gt_JAVACOMP): Don't create conftestlib.java.
* lib/javacomp.c (compile_java_class): Remove local variables
no_assert_option, fsource_option, ftarget_option.

22 months agocorrect my typo in ChangeLog; making it mirror the correct commit log
Jim Meyering [Sat, 10 Jun 2023 00:28:26 +0000 (17:28 -0700)]
correct my typo in ChangeLog; making it mirror the correct commit log

22 months agodoc: Document <stdatomic.h>.
Bruno Haible [Fri, 9 Jun 2023 19:59:29 +0000 (21:59 +0200)]
doc: Document <stdatomic.h>.

* doc/posix-headers/stdatomic.texi: New file.
* doc/gnulib.texi (Header File Substitutes): Include it.

22 months agomaint.mk: sc_prohibit_xalloc_without_use: also match alloc_die
Jim Meyering [Fri, 9 Jun 2023 17:15:30 +0000 (10:15 -0700)]
maint.mk: sc_prohibit_xalloc_without_use: also match alloc_die

* top/maint.mk (sc_prohibit_xalloc_without_use):
Adjust in-comment command's regexp so it also finds alloc_die,
whose declaration has a prefix of "_Noreturn" .
Also delete some now-obsolete commentary.
(_xa1): Regenerate the regexp using that command.
Reported by Pádraig Brady in
<https://lists.gnu.org/r/bug-gnulib/2023-06/msg00062.html>.

22 months agoCorrection of a spelling fix.
Bruno Haible [Fri, 9 Jun 2023 18:45:45 +0000 (20:45 +0200)]
Correction of a spelling fix.

* lib/argp.h: Change "passed into" to "passed to".

22 months agoxalloc-die: omit /*extern*/
Paul Eggert [Fri, 9 Jun 2023 18:13:19 +0000 (11:13 -0700)]
xalloc-die: omit /*extern*/

* lib/xalloc.h (xalloc_die): Omit leading "/*extern*/".
It complicates syntax checking; see:
https://lists.gnu.org/r/bug-gnulib/2023-06/msg00062.html
Plus, it’s inconsistent style: the other function declarations in
xalloc.h don’t use ‘extern’. (I’m not a fan of using ‘extern’ when
it’s just noise, as is the case here.)

22 months agojavaversion: Update comments.
Bruno Haible [Fri, 9 Jun 2023 15:08:14 +0000 (17:08 +0200)]
javaversion: Update comments.

* lib/javaversion.h (javaexec_version): Document the possible results up
to OpenJDK 20.

22 months agojavacomp: Remove support for 'jikes'.
Bruno Haible [Fri, 9 Jun 2023 14:11:23 +0000 (16:11 +0200)]
javacomp: Remove support for 'jikes'.

* lib/javacomp.c (compile_using_jikes, is_jikes_present): Remove
functions.
(compile_java_class): Remove jikes related code.

22 months agojavacomp-script: Remove support for 'jikes'.
Bruno Haible [Fri, 9 Jun 2023 14:08:18 +0000 (16:08 +0200)]
javacomp-script: Remove support for 'jikes'.

* build-aux/javacomp.sh.in: Don't test HAVE_JIKES.
* m4/javacomp.m4 (gt_JAVACOMP): Don't set HAVE_JIKES. Don't set
CONF_JAVAC to 'jikes'. Update comment.
(gt_JAVACOMP_DISABLED): Don't set HAVE_JIKES.

22 months agojavacomp: Remove support for 'gcj'.
Bruno Haible [Fri, 9 Jun 2023 13:45:25 +0000 (15:45 +0200)]
javacomp: Remove support for 'gcj'.

* lib/javacomp.h: Update comment.
* lib/javacomp.c (compile_using_gcj, is_envjavac_gcj, is_envjavac_gcj43,
is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
is_envjavac_oldgcj_14_13_usable, is_gcj_present, is_gcj_43,
is_gcj43_usable, is_oldgcj_14_14_usable, is_oldgcj_14_13_usable): Remove
functions.
(is_envjavac_usable): Renamed from is_envjavac_nongcj_usable.
(compile_java_class): Remove gcj related code.

22 months agojavacomp-script: Remove support for 'gcj'.
Bruno Haible [Fri, 9 Jun 2023 13:29:01 +0000 (15:29 +0200)]
javacomp-script: Remove support for 'gcj'.

* build-aux/javacomp.sh.in: Don't test HAVE_GCJ_C.
* m4/javacomp.m4 (gt_JAVACOMP): Don't set HAVE_GCJ_C. Don't test whether
$JAVAC is gcj. Don't set CONF_JAVAC to 'gcj -C'. Update comment.
(gt_JAVACOMP_DISABLED): Don't set HAVE_GCJ_C.

22 months agojavaexec: Remove support for 'gij'.
Bruno Haible [Fri, 9 Jun 2023 13:17:53 +0000 (15:17 +0200)]
javaexec: Remove support for 'gij'.

* lib/javaexec.c (execute_java_class): Don't test for gij.

22 months agojavaexec-script: Remove support for 'gij'.
Bruno Haible [Fri, 9 Jun 2023 13:14:52 +0000 (15:14 +0200)]
javaexec-script: Remove support for 'gij'.

* build-aux/javaexec.sh.in: Don't test HAVE_GIJ.
* m4/javaexec.m4 (gt_JAVAEXEC): Don't set HAVE_GIJ. Don't set CONF_JAVA
to 'gij'.
* m4/javacomp.m4: Update comment.

22 months agojavaexec: Remove support for 'jview'.
Bruno Haible [Fri, 9 Jun 2023 12:57:07 +0000 (14:57 +0200)]
javaexec: Remove support for 'jview'.

* lib/javaexec.c (execute_java_class): Don't test for jview.

22 months agojavaexec-script: Remove support for 'jview'.
Bruno Haible [Fri, 9 Jun 2023 12:56:49 +0000 (14:56 +0200)]
javaexec-script: Remove support for 'jview'.

* build-aux/javaexec.sh.in: Don't test HAVE_JVIEW.
* m4/javaexec.m4 (gt_JAVAEXEC): Don't set HAVE_JVIEW. Don't set
CONF_JAVA to 'jview'.
(gt_JAVAEXEC_DISABLED): Don't set HAVE_JVIEW.
* m4/javacomp.m4: Update comment.

22 months agoautoupdate
Paul Eggert [Fri, 9 Jun 2023 03:41:46 +0000 (20:41 -0700)]
autoupdate

22 months agoSpelling fixes
Paul Eggert [Thu, 8 Jun 2023 21:53:51 +0000 (14:53 -0700)]
Spelling fixes

Most of these were reported by Josh Soref <jsoref@gmail.com> in:
https://lists.gnu.org/r/bug-gnulib/2023-06/msg00057.html
except that some are omitted because the original is OK (e.g.,
"obsolescent"), and some are omitted because they are upstream
files and I've fixed them upstream or have filed bug reports,
and I made a few nearby corrections to grammar.

22 months agomaint.mk: regenerate regex to reflect new functions in xalloc.h
Jim Meyering [Wed, 7 Jun 2023 03:49:22 +0000 (20:49 -0700)]
maint.mk: regenerate regex to reflect new functions in xalloc.h

* top/maint.mk (sc_prohibit_xalloc_without_use) [_xa1]:
Regenerate using the command listed in the comment.

22 months ago* Changelog: Fix spelling typo.
Paul Eggert [Wed, 7 Jun 2023 02:50:19 +0000 (19:50 -0700)]
* Changelog: Fix spelling typo.

22 months agopropername: pacify po_check
Paul Eggert [Wed, 7 Jun 2023 01:42:56 +0000 (18:42 -0700)]
propername: pacify po_check

Problem reported by Bruno Haible <https://bugs.gnu.org/63933>.
* lib/propername.h: Change comment.

22 months agoPut "/" at end of .gitignore directory names
Paul Eggert [Tue, 6 Jun 2023 21:23:39 +0000 (14:23 -0700)]
Put "/" at end of .gitignore directory names

* build-aux/bootstrap: Regenerate.
* top/bootstrap-funclib.sh (symlink_to_dir, autogen):
Put slashes after .gitignore entries that name directories.

22 months agomaintainer-makefile: Enforce the GNU Coding Standards in the README.
Jose E. Marchesi [Tue, 6 Jun 2023 17:35:35 +0000 (19:35 +0200)]
maintainer-makefile: Enforce the GNU Coding Standards in the README.

* top/maint.mk (sc_readme_link_install): New rule.
(sc_readme_link_copying): Likewise.

23 months agocopy-file-range: support building for older kernels
Paul Eggert [Tue, 6 Jun 2023 05:04:37 +0000 (22:04 -0700)]
copy-file-range: support building for older kernels

* m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
Remove static check, to support the dubious practice of
building for platforms that predate the build platform.
On working kernels this adds an extra syscall the first time
that copy_file_range is used.  Problem reported for Gentoo by
Sam James <https://bugs.gnu.org/63850>.

23 months agomanywarnings: more nuance about optimization
Paul Eggert [Mon, 5 Jun 2023 20:16:22 +0000 (13:16 -0700)]
manywarnings: more nuance about optimization

* doc/manywarnings.texi (manywarnings): Suggest compiling with the
optimization flags commonly used, as opposed to -O2 and -O0
specificially.  -ggdb shouldn’t affect warnings so don’t mention it.

23 months agoposix_spawn-internal: Fix a warning (regression 2022-11-20).
Bruno Haible [Mon, 5 Jun 2023 13:45:25 +0000 (15:45 +0200)]
posix_spawn-internal: Fix a warning (regression 2022-11-20).

* lib/spawni.c: Don't use this particular #pragma for gcc < 4.2.

23 months agofile-has-acl: Fix compilation error on Slackware 13 (regr. 2023-05-12).
Bruno Haible [Mon, 5 Jun 2023 13:13:53 +0000 (15:13 +0200)]
file-has-acl: Fix compilation error on Slackware 13 (regr. 2023-05-12).

* lib/file-has-acl.c (XATTR_NAME_POSIX_ACL_ACCESS,
XATTR_NAME_POSIX_ACL_DEFAULT): Add fallback definitions.

23 months agoFix bugs on mingw when module dirfd is in use (regression 2023-04-26).
Bruno Haible [Mon, 5 Jun 2023 09:15:37 +0000 (11:15 +0200)]
Fix bugs on mingw when module dirfd is in use (regression 2023-04-26).

* lib/getcwd.c: When GNULIB_defined_DIR, revert to the system's
definitions of opendir, closedir, readdir, rewinddir.
* lib/mountlist.c: When GNULIB_defined_DIR, revert to the system's
definitions of opendir, closedir, readdir.
* lib/scandir.c: Likewise.
* lib/glob.c: Fix comment. When GNULIB_defined_DIR, don't undefine
opendir, closedir.

23 months agomanywarnings: Overhaul documentation.
Bruno Haible [Sun, 4 Jun 2023 22:16:40 +0000 (00:16 +0200)]
manywarnings: Overhaul documentation.

* doc/manywarnings.texi: In the example, put all unwanted warning
options into 'nw', and use a second gl_MANYWARN_COMPLEMENT invocation to
sort out how these options need to get added to WARN_FLAGS.
Describe the first-time use in more detail: Recommend a new GCC.
Recommend to test builds with -O2 and with -O0. Suggest to sort the
warning by warning option. Add reference to the GCC pragma's
documentation.

23 months agoerror: Fix support for library namespacing (regression 2023-05-27).
Bruno Haible [Sun, 4 Jun 2023 17:27:48 +0000 (19:27 +0200)]
error: Fix support for library namespacing (regression 2023-05-27).

* lib/error.in.h (error): If error is defined as a macro, define a
static inline function _gl_inline_error that invokes it, and let the
new error macro invoke that function.
(error_at_line): If error_at_line is defined as a macro, define a static
inline function _gl_inline_error_at_line that invokes it, and let the
new error_at_line macro invoke that function.

23 months agoterminfo, termcap: Fix "discards 'const' qualifier" warnings.
Bruno Haible [Sun, 4 Jun 2023 14:41:47 +0000 (16:41 +0200)]
terminfo, termcap: Fix "discards 'const' qualifier" warnings.

* lib/tparm.c (tparm): Change type of 'fmt'. New local variable 'fmtp'.

23 months agouniname/uniname: Add comments.
Bruno Haible [Sun, 4 Jun 2023 12:08:24 +0000 (14:08 +0200)]
uniname/uniname: Add comments.

* modules/uniname/uniname (Makefile.am): Explain how to work around a
GCC bug.

23 months agouniname/uniname: Fix -Wformat-signedness warning.
Bruno Haible [Sun, 4 Jun 2023 08:50:29 +0000 (10:50 +0200)]
uniname/uniname: Fix -Wformat-signedness warning.

* lib/uniname/uniname.c (unicode_character_name): Use %u instead of %d
in format string.

23 months agouniname/uniname: Improve comments.
Bruno Haible [Sun, 4 Jun 2023 08:45:00 +0000 (10:45 +0200)]
uniname/uniname: Improve comments.

* lib/uniname/uniname.c (unicode_character_name): Fix comments.

23 months agoclasspath, csharpexec: Avoid "candidate for attribute 'malloc'" warning.
Bruno Haible [Sat, 3 Jun 2023 11:07:31 +0000 (13:07 +0200)]
classpath, csharpexec: Avoid "candidate for attribute 'malloc'" warning.

* lib/classpath.h (set_classpath): Mark with attribute 'malloc'.

23 months agopropername-lite: Improve documentation.
Bruno Haible [Sat, 3 Jun 2023 10:31:21 +0000 (12:31 +0200)]
propername-lite: Improve documentation.

* lib/propername.h: Describe functional differences between
proper_name_lite and proper_name_utf8.

23 months agognulib-tool: Keep in sync with last change to gnulib-tool.py.
Bruno Haible [Sat, 3 Jun 2023 10:26:08 +0000 (12:26 +0200)]
gnulib-tool: Keep in sync with last change to gnulib-tool.py.

* gnulib-tool (func_emit_po_Makevars): Treat proper_name_lite like
proper_name_utf8.

23 months agoerror: Improve comments.
Bruno Haible [Sat, 3 Jun 2023 09:59:59 +0000 (11:59 +0200)]
error: Improve comments.

* lib/error.in.h (__gl_error_call): Add more comments.

23 months agoerror: do not evaluate status twice
Paul Eggert [Sat, 3 Jun 2023 05:30:52 +0000 (22:30 -0700)]
error: do not evaluate status twice

Do this in a different way, so that the status is evaluated
once even when not optimizing and when using GCC.
* lib/error.in.h (__gl_error_call1) [__GNUC__]: New macro.
(__gl_error_call) [__GNUC__]: Use it.

23 months agowarnings: Add ability to inhibit all warnings.
Bruno Haible [Fri, 2 Jun 2023 21:41:47 +0000 (23:41 +0200)]
warnings: Add ability to inhibit all warnings.

* m4/warnings.m4 (gl_CC_INHIBIT_WARNINGS, gl_CXX_INHIBIT_WARNINGS): New
macros, based on gl_CC_ALLOW_WARNINGS and gl_CXX_ALLOW_WARNINGS in
m4/gnulib-common.m4.

23 months agopropername-lite: new module
Paul Eggert [Fri, 2 Jun 2023 21:02:53 +0000 (14:02 -0700)]
propername-lite: new module

propername_lite acts like propername_utf8 but needs less
infrastructure, e.g., it does not worry about memory allocation.
* MODULES.html.sh (func_all_modules): Mention it.
* lib/propername.h (proper_name_lite): New decl.
* lib/propername-lite.c, modules/propername-lite: New files.
* pygnulib/GLEmiter.py (GLEmiter.po_Makevars):
Treat proper_name_lite like proper_name_utf8.

23 months agoopenmp-init: Silence "no previous prototype for 'openmp_init'" warning.
Bruno Haible [Fri, 2 Jun 2023 18:11:53 +0000 (20:11 +0200)]
openmp-init: Silence "no previous prototype for 'openmp_init'" warning.

* lib/omp.in.h: Test _OPENMP.
* lib/omp-init.c: Include <omp.h> always.
* modules/openmp-init (Include): Allow <omp.h> to be included always.

23 months agoterm-style-control: Silence -Wshadow warning.
Bruno Haible [Fri, 2 Jun 2023 18:11:49 +0000 (20:11 +0200)]
term-style-control: Silence -Wshadow warning.

* lib/term-style-control.c (continuing_signal_handler): Rename
parameter.

23 months agopipe-filter-gi, pipe-filter-ii: Silence -Wunused-macro warning.
Bruno Haible [Fri, 2 Jun 2023 18:11:45 +0000 (20:11 +0200)]
pipe-filter-gi, pipe-filter-ii: Silence -Wunused-macro warning.

* lib/pipe-filter-aux.c: Remove many unnecessary includes.
(_): Remove macro.

23 months agojavacomp: Silence -Wanalyzer-possible-null-argument warning.
Bruno Haible [Fri, 2 Jun 2023 18:11:57 +0000 (20:11 +0200)]
javacomp: Silence -Wanalyzer-possible-null-argument warning.

* lib/javacomp.c: Include verify.h.
(is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_13_usable,
is_envjavac_nongcj_usable, compile_java_class): Assert that the
xasprintf results are non-NULL. This is possible since all involved
format strings are valid and don't use %ls, and all argument strings
are small compared to INT_MAX.
* modules/javacomp (Depends-on): Add verify.

23 months agostriconveha: Don't crash if malloc() returns NULL.
Bruno Haible [Fri, 2 Jun 2023 18:11:41 +0000 (20:11 +0200)]
striconveha: Don't crash if malloc() returns NULL.

* lib/striconveha.c (mem_iconveha, str_iconveha): Check malloca() return
value.

23 months agosetenv: Don't crash if malloc() returns NULL.
Bruno Haible [Fri, 2 Jun 2023 18:11:36 +0000 (20:11 +0200)]
setenv: Don't crash if malloc() returns NULL.

* lib/setenv.c (rpl_setenv): Check malloca() return value.

23 months agoerror: Avoid implicit-fallthrough warnings with -O0 (regr. 2023-05-30).
Bruno Haible [Fri, 2 Jun 2023 18:02:45 +0000 (20:02 +0200)]
error: Avoid implicit-fallthrough warnings with -O0 (regr. 2023-05-30).

* lib/error.in.h (__gl_error_call): Parenthesize status. When not
optimizing, expand to code without compound statements.

23 months agogetprogname: Add support for ASCII-compatible environments in z/OS.
Bruno Haible [Thu, 1 Jun 2023 14:18:02 +0000 (16:18 +0200)]
getprogname: Add support for ASCII-compatible environments in z/OS.

Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00198.html>.

* lib/getprogname.c (getprogname): On z/OS, when compiling for an
ASCII-compatible environment, convert the result from EBCDIC to ASCII.

23 months agognulib-tool.py: Fix a format string mistake.
Mitch Capper [Thu, 1 Jun 2023 13:50:56 +0000 (15:50 +0200)]
gnulib-tool.py: Fix a format string mistake.

* pygnulib/GLImport.py (GLImport.execute): Fix a typo in a format
string.

Copyright-paperwork-exempt: Yes

23 months agoAdd info for maintainers and contributors.
Bruno Haible [Thu, 1 Jun 2023 13:11:35 +0000 (15:11 +0200)]
Add info for maintainers and contributors.

* HACKING: New file.

23 months agoreadline: fix memory leak in replacement readline.
Nick Bowler [Wed, 31 May 2023 01:26:19 +0000 (21:26 -0400)]
readline: fix memory leak in replacement readline.

* lib/readline.c (readline): Free memory after getline failure.
Copyright-paperwork-exempt: true

23 months agoerror: fix typo in previous patch
Paul Eggert [Tue, 30 May 2023 22:12:43 +0000 (15:12 -0700)]
error: fix typo in previous patch

* lib/error.in.h (error): Fix __VA_ARGS__ typo noted by
Bruno Haible.

23 months agoerror: don’t call ‘exit’
Paul Eggert [Tue, 30 May 2023 21:38:41 +0000 (14:38 -0700)]
error: don’t call ‘exit’

Let the underlying functions call ‘exit’, instead of having the
Gnulib replacement macros do it.  Use ‘unreachable’ to tell the
compiler that those functions exit when the status is nonzero.
This saves a function call.
* lib/error.in.h: Include stddef.h, not stdlib.h.
(__gl_error_call): Rely on the function to exit, using
‘unreachable’ to tell the compiler that the function does not return.
* modules/error (Depends-on): Add stddef.

23 months agoerror: don’t evaluate status arg twice
Paul Eggert [Tue, 30 May 2023 19:49:20 +0000 (12:49 -0700)]
error: don’t evaluate status arg twice

This avoids potential issues if the first argument has a side effect.
* lib/error.in.h (__gl_error_call): New macro, which evaluates its
status arg only once, by using a statement expression if GNU C -
the only platform we need to worry about pacifying - and by simply
calling ‘error’ otherwise.
(error, error_at_line): Use it.

23 months agowarnings, manywarnings: Assume autoconf >= 2.64.
Bruno Haible [Sun, 28 May 2023 17:00:34 +0000 (19:00 +0200)]
warnings, manywarnings: Assume autoconf >= 2.64.

* m4/warnings.m4 (gl_AS_VAR_APPEND): Remove macro.
(gl_COMPILER_OPTION_IF, gl_WARN_ADD): Use AS_VAR_APPEND instead of
gl_AS_VAR_APPEND.
* m4/manywarnings.m4: Likewise.

23 months agofile-has-acl: avoid warning from bleeding-edge GCC
Jim Meyering [Sun, 28 May 2023 16:41:08 +0000 (09:41 -0700)]
file-has-acl: avoid warning from bleeding-edge GCC

* lib/file-has-acl.c: Include attribute.h.
(have_xattr): Declare with ATTRIBUTE_PURE,
to avoid new warning from GCC14-to-be.
* modules/file-has-acl (Depends-on): Add attribute.
Spotted while building coreutils with this:
gcc version 14.0.0 20230526 (experimental)