• Show log

    Commit

  • Hash : 84d76cdd
    Author : Bruno Haible
    Date : 2025-09-17T09:31:31

    stdio-h: Work around [v][f]printf bugs in mingw with msvcrt.
    
    Reported by 松延 英樹 <maznobu@gmail.com> in
    <https://github.com/mlocati/gettext-iconv-windows/issues/52>.
    
    * lib/stdio.in.h (gl_consolesafe_fprintf, gl_consolesafe_printf,
    gl_consolesafe_vfprintf, gl_consolesafe_vprintf): New declarations.
    (fprintf): When msvcrt is in use, use gl_consolesafe_fprintf.
    (printf): When msvcrt is in use, use gl_consolesafe_printf.
    (vfprintf): When msvcrt is in use, use gl_consolesafe_vfprintf.
    (vprintf): When msvcrt is in use, use gl_consolesafe_vprintf.
    * lib/stdio-consolesafe.c: Include fseterr.h.
    (gl_consolesafe_fprintf, gl_consolesafe_printf, gl_consolesafe_vfprintf,
    gl_consolesafe_vprintf): New functions.
    * lib/stdio-write.c (vfprintf): When msvcrt is in use, use
    gl_consolesafe_vfprintf.
    * modules/stdio-h (Depends-on): Add fseterr.
    * doc/posix-functions/fprintf.texi: Document the mingw bug.
    * doc/posix-functions/printf.texi: Likewise.
    * doc/posix-functions/vfprintf.texi: Likewise.
    * doc/posix-functions/vprintf.texi: Likewise.
    

  • README

  • This directory contains metainformation about the gnulib modules, one or two
    files per module. These files are used by gnulib-tool.
    
    For every module,
      - the file <module> is the metainformation about the library code of the
        module,
      - the file <module>-tests is the metainformation about the unit test of
        the module (optional but recommended).
    
    All the files in this directory are distributed under the following copyright:
    
      Copyright (C) 2002-2025 Free Software Foundation, Inc.
      Copying and distribution of this file, with or without modification,
      in any medium, are permitted without royalty provided the copyright
      notice and this notice are preserved.