summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* wcswidth: Fix result in case of overflow.stable-202207Bruno Haible2023-05-052-4/+23
| | | | | * lib/wcswidth-impl.h (wcswidth): Continue searching for a non-printing wide character after the total width has become > INT_MAX.
* vasnprintf: Make '0' flag handling more ISO C compliant.Bruno Haible2023-05-052-5/+27
| | | | | | * lib/vasnprintf.c (VASNPRINTF): When doing the padding ourselves, ignore the '0' flag if a precision is specified and the conversion is one of d, i, o, u, x, X, b, B.
* extern-inline: port to pccPaul Eggert2023-05-052-2/+11
| | | | | | * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to pcc 1.2.0.DEVEL 20220331, which doesn’t support extern inline even though it claims to be GCC 4.3 and to support C11.
* stdio: Avoid different configure results in different testdirs.Bruno Haible2023-05-053-4/+31
| | | | | | | | * m4/stdio_h.m4 (gl_STDIO_H_EARLY): New macro, extracted from gl_STDIO_H. (gl_STDIO_H): Move the code that sets __USE_MINGW_ANSI_STDIO to gl_STDIO_H_EARLY. * modules/stdio (configure.ac-early): New section.
* stdbool tests: Avoid compilation error with Sun C on Solaris 10.Bruno Haible2023-05-052-2/+7
| | | | * tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C.
* hamt tests: Fix test failure with Sun C on Solaris 10/SPARC.Bruno Haible2023-05-052-1/+8
| | | | * tests/test-hamt.c (main): Finish with exit code 0.
* fchdir tests: Fix test failure on native Windows.Bruno Haible2023-04-272-0/+6
| | | | * modules/fchdir-tests (Depends-on): Add dup.
* gnulib-tool: For conditional dependencies, generate portable sh code.Po Lu2023-04-273-3/+11
| | | | | | * gnulib-tool (func_emit_autoconf_snippets): Avoid sh syntax 'if ! variable', that does not work with Solaris /bin/sh. * pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Likewise.
* expm1 tests: Avoid test failure on 32-bit mingw.Bruno Haible2023-04-272-6/+7
| | | | * tests/test-expm1.h (test_function): Mark y as 'volatile'.
* poll tests: Avoid test failure on native Windows.Bruno Haible2023-04-273-3/+11
| | | | | | | * tests/test-poll.c (test_pipe): Disable the POLLHUP check also on native Windows. * doc/posix-functions/poll.texi: Mention also native Windows w.r.t. POLLHUP.
* select, pselect: Fix test failure on native Windows.Bruno Haible2023-04-273-4/+19
| | | | | * lib/select.c (rpl_select): Fail if nfds is out-of-range. * lib/pselect.c (pselect): Likewise.
* ftell, ftello: Fix recognition of pipes on native Windows.Bruno Haible2023-04-273-7/+27
| | | | | | * m4/lseek.m4 (gl_FUNC_LSEEK): Update comment. * m4/ftello.m4 (gl_FUNC_FTELLO): On native Windows, set REPLACE_FTELLO=1 always.
* lseek: Fix module dependencies (regression 2021-11-15).Bruno Haible2023-04-272-1/+7
| | | | | * modules/lseek (Depends-on): Re-enable the msvc-nothrow dependency also when WINDOWS_64_BIT_OFF_T is 0.
* system-quote: Fix memory overrun bug on native Windows.Bruno Haible2023-04-272-2/+8
| | | | | * lib/system-quote.c (system_quote): Allocate enough space for the result.
* unicodeio tests: Avoid test failures on native Windows.Bruno Haible2023-04-273-2/+31
| | | | | | * tests/test-unicodeio.c: Include localcharset.h. (main): Handle C locales whose encoding is CP1252 or similar. * modules/unicodeio-tests (Depends-on): Add localcharset.
* category-none: Fix link errors on MSVC, when libunistring is installed.Bruno Haible2023-04-272-3/+9
| | | | | | * modules/unictype/category-none (configure.ac): Remove gl_LIBUNISTRING_MODULE invocation. (Makefile.am): Compile unictype/categ_none.c always.
* Avoid some Autoconf "was expanded before it was required" warnings.Bruno Haible2023-04-276-16/+25
| | | | | | | | * m4/locale-ar.m4 (gt_LOCALE_AR): Define through AC_DEFUN_ONCE. * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise. * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise. * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise. * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
* posixtm tests: Avoid test failure on native Windows.Bruno Haible2023-04-272-3/+17
| | | | | * tests/test-posixtm.c (T): On native Windows, disable test cases that would fail.
* getumask: Make it work on native Windows.Bruno Haible2023-04-213-2/+24
| | | | | | * lib/getumask.c (getumask): When TMPDIR is unset, try TMP and TEMP. * tests/test-getumask.c (ASSUME_UMASK_CONSTANT): Define to 1 on native Windows.
* posixtm tests: Fix link error.Bruno Haible2023-04-212-0/+6
| | | | * modules/posixtm-tests (Depends-on): Add stpcpy.
* readtokens tests: Fix test failure on mingw.Bruno Haible2023-04-212-3/+10
| | | | | * tests/test-readtokens.sh: Transform CRLF to LF in the output, before comparing with the expected output.
* parse-duration tests: Fix test failure on mingw.Bruno Haible2023-04-212-1/+8
| | | | | * tests/test-parse-duration.sh: Transform CRLF to LF in the output, before analyzing the output.
* Fix uses of libwinpthread on mingw 10.Bruno Haible2023-04-212-6/+13
| | | | | * m4/threadlib.m4 (gl_WEAK_SYMBOLS): On mingw, set the result to "guessing no".
* execute tests: Fix compilation error on mingw (regression 2023-01-17).Bruno Haible2023-04-212-1/+9
| | | | | * tests/test-execute-main.c (main): Don't use SIGPIPE if it's not defined.
* assert-h, verify: Fix compilation error in C++ mode with MSVC 14.30.Bruno Haible2023-04-212-5/+18
| | | | | | * lib/verify.h (_Static_assert): In C++ mode with MSVC 14.1 or newer, define merely to static_assert. (static_assert): In C++ mode with MSVC 14.1 or newer, don't define.
* chown tests: Fix link error on mingw 10.Bruno Haible2023-04-216-3/+20
| | | | | | | | * modules/chown-tests (configure.ac): Test whether getgid() exists. * modules/lchown-tests (configure.ac): Likewise. * modules/fchownat-tests (configure.ac): Likewise. * tests/test-chown.h (getgid): Define a fallback. * tests/test-lchown.h (getgid): Likewise.
* random: Fix compilation errors in C++ mode on mingw 10.Bruno Haible2023-04-212-0/+10
| | | | | * lib/stdlib.in.h (random, srandom): Disable _GL_CXXALIASWARN invocation on non-glibc systems.
* ilogbl: Work around a Cygwin 3.4.6 bug.Bruno Haible2023-04-213-4/+33
| | | | | | * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Also test the value of ilogbl(NaN). * doc/posix-functions/ilogbl.texi: Mention the new Cygwin bug.
* file-has-acl tests: Avoid test failures on Cygwin 3.4.6.Bruno Haible2023-04-212-1/+7
| | | | | * tests/test-file-has-acl.sh: Fix distinction between Linux setfacl and Cygwin setfacl.
* c32isgraph tests: Avoid test failure on Cygwin 3.4.6.Bruno Haible2023-04-212-3/+8
| | | | * tests/test-c32isgraph.c (main): Skip U+00A0 test on Cygwin.
* posix_spawn_file_actions_addclose tests: Avoid test failure on Cygwin.Bruno Haible2023-04-212-3/+9
| | | | | * tests/test-posix_spawn_file_actions_addclose.c (main): Skip an unportable test also on Cygwin.
* Fix compilation errors of list, set, oset, map, omap in C++ mode.Bruno Haible2023-04-212-16/+49
| | | | | | | * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_BRACKET_BEFORE_ATTRIBUTE. In _GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_MAYBE_UNUSED, _GL_ATTRIBUTE_NODISCARD, don't use the bracket syntax if _GL_BRACKET_BEFORE_ATTRIBUTE is defined.
* isnan: Fix compilation error in C++ mode on FreeBSD 13.2.Bruno Haible2023-04-212-0/+11
| | | | | * lib/math.in.h (isnan): On FreeBSD 13.2 or newer, don't declare isnan through _GL_MATH_CXX_REAL_FLOATING_DECL_2.
* ialloc, gethrxtime: Restore GCC diagnostics options.Bruno Haible2023-04-213-2/+12
| | | | | * lib/ialloc.h: Invoke _GL_INLINE_HEADER_END. * lib/xtime.h: Likewise.
* flexmember: Fix module description (regression 2016-09-07).Bruno Haible2023-04-212-0/+6
| | | | * modules/flexmember (Include): Add "flexmember.h".
* Makefile: Fix a syntax alert.Bruno Haible2023-04-212-3/+8
| | | | * Makefile: Indent commands with tabs, not spaces.
* year2038: configure earlierPaul Eggert2023-04-212-1/+9
| | | | | * modules/year2038: Put AC_SYS_YEAR2038 in configure.ac-early since it can affect later compilations with _TIME_BITS=64.
* c32is*: Ensure GNULIB_defined_mbstate_t is defined on AIX.Bruno Haible2023-04-2115-5/+84
| | | | | | | | | | | | | | | | | | * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Define through AC_DEFUN_ONCE. * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Require it. * modules/c32isalnum (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4. (configure.ac): Require gl_MBSTATE_T_BROKEN. * modules/c32isalpha: Likewise. * modules/c32isblank: Likewise. * modules/c32iscntrl: Likewise. * modules/c32isdigit: Likewise. * modules/c32isgraph: Likewise. * modules/c32islower: Likewise. * modules/c32isprint: Likewise. * modules/c32ispunct: Likewise. * modules/c32isspace: Likewise. * modules/c32isupper: Likewise. * modules/c32isxdigit: Likewise.
* mbrtoc32: Add comments.Bruno Haible2023-04-213-3/+20
| | | | | | * lib/mbrtoc32.c: Add comment regarding AIX. * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32): Add comment regarding GNULIB_defined_mbstate_t.
* Avoid Autoconf "was expanded before it was required" warning.Bruno Haible2023-04-214-9/+17
| | | | | | | * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Define through AC_DEFUN_ONCE. * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise. * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
* striconveh tests: Avoid test failure on glibc 2.15.Bruno Haible2023-04-212-7/+19
| | | | | * tests/test-striconveh.c (main): Skip some of the GB18030 tests on glibc < 2.16.
* unistdio/*: Fix test failures (regression 2023-01-28).Bruno Haible2023-04-2159-58/+64
| | | | | * modules/unistdio/*printf (configure.ac): Bump required libunistring version number.
* alignalloc: Fix link error on glibc 2.15 systems.Bruno Haible2023-04-082-2/+8
| | | | | * lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on glibc 2.15 systems.
* random_r: Fix compilation error on Haiku.Bruno Haible2023-04-083-5/+9
| | | | | * lib/stdlib.in.h: For random_r, include <stdint.h> always. * modules/random_r (Depends-on): Depend on 'stdint' always.
* forkpty, openpty, login_tty: Fix link errors of the tests.Bruno Haible2023-04-082-12/+24
| | | | * m4/pty.m4 (gl_PTY_LIB): On Haiku, set PTY_LIB to '-lbsd'.
* strerrorname_np: Fix compilation error on Haiku.Bruno Haible2023-04-083-4/+11
| | | | | | * lib/strerrorname_np.c (strerrorname_np): Avoid conflict between EDOOFUS and EINVAL. * tests/test-strerrorname_np.c (main): Likewise.
* btowc: Fix file lists.Bruno Haible2023-04-089-0/+20
| | | | | | | | | | | * modules/btowc (Files): Add m4/codeset.m4. * modules/c-dtoastr-tests (Files): Likewise. * modules/c-ldtoastr-tests (Files): Likewise. * modules/c-snprintf-tests (Files): Likewise. * modules/c-vasprintf-tests (Files): Likewise. * modules/c-vsnprintf-tests (Files): Likewise. * modules/c-xvasprintf-tests (Files): Likewise. * modules/nl_langinfo-tests (Files): Likewise.
* c32tob, c32is*, c32rtomb, mbrtoc32: Fix file lists.Bruno Haible2023-04-0816-0/+65
| | | | | | | | | | | | | | | | | | | * modules/c32tob (Files): Add m4/locale-fr.m4, m4/locale-zh.m4, m4/codeset.m4. * modules/c32isalnum (Files): Likewise. * modules/c32isalpha (Files): Likewise. * modules/c32isblank (Files): Likewise. * modules/c32iscntrl (Files): Likewise. * modules/c32isdigit (Files): Likewise. * modules/c32isgraph (Files): Likewise. * modules/c32islower (Files): Likewise. * modules/c32isprint (Files): Likewise. * modules/c32ispunct (Files): Likewise. * modules/c32isspace (Files): Likewise. * modules/c32isupper (Files): Likewise. * modules/c32isxdigit (Files): Likewise. * modules/c32rtomb (Files): Likewise. * modules/mbrtoc32 (Files): Likewise.
* backupfile: fix bug when renaming from subdirectoryPádraig Brady2023-04-082-4/+13
| | | | | | | * lib/backupfile.c (backup_internal): Ensure we use the appropriate offset if operating on a subdirectory, i.e., on an updated sdir. Fixes https://bugs.gnu.org/62607
* c32rtomb: Fix an autoconf test.Bruno Haible2023-04-082-2/+9
| | | | | * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): In a test program, include <stddef.h>, for NULL.