2024-04-25  Werner Koch  <wk@gnupg.org>

	Release 1.49.
	+ commit faed9c271ad22bbd2ed265d8e11badb53b7a2f32


	logging: New function gpgrt_logv_domain.
	+ commit 2f9a0895a103f0baf1c2ea38662112c1359bdb90
	* src/gpg-error.h.in (gpgrt_logv_domain): New.  Also add printf
	attributes to the other logv functions.
	* src/visibility.c (gpgrt_logv_domain): New.

2024-04-22  Werner Koch  <wk@gnupg.org>

	core: New function gpgrt_add_post_log_func.
	+ commit 319a505623c197d06ca3e76f30691fe65a982d6f
	* src/gpg-error.h.in (gpgrt_add_post_log_func): New.
	* src/gpg-error.vers: Add new function
	* src/gpg-error.def.in: Ditto.
	* src/visibility.c (gpgrt_add_post_log_func): New.
	* src/logging.c (struct post_log_func_item_s): New.
	(post_log_func_list): New.
	(_gpgrt_add_post_log_func): new.
	(run_post_log_funcs): New.
	(_gpgrt_logv_internal): Call for fatal and bug log levels.

2024-04-19  Werner Koch  <wk@gnupg.org>

	logging: Indent continuation lines of log_printhex.
	+ commit 6ab3e9ac43ba104f557d538db100953ae6245076
	* src/logging.c (_gpgrt_logv_internal): Change to return the length
	w/o prefix.
	(_gpgrt_logv_printhex): Indent wrapped lines properly.

2024-04-12  Werner Koch  <wk@gnupg.org>

	logging: Add a truncate keyword to log_printhex.
	+ commit 0a39fbefcb55379de1cdf1049de303c5ca0691b3
	* src/logging.c (_gpgrt_logv_printhex): Add keyword support.

2024-04-08  Werner Koch  <wk@gnupg.org>

	argparser: avoid endless loop due to a conf file read error.
	+ commit 2dc93cfecc7a7b22fd08365a789b8c6c4b8cc36c
	* src/argparse.c (struct _gpgrt_argparse_internal_s): Add forceeof
	flag.
	(initialize): Clear.
	(_gpgrt_argparse): Clear.
	(_gpgrt_argparse): Act upon.

2024-02-23  Werner Koch  <wk@gnupg.org>

	Release 1.48.
	+ commit 77b7c5ff6b756870811acaff53df0ebf1e5c2368


2024-02-21  Werner Koch  <wk@gnupg.org>

	argparse: Adjust help output for command mode.
	+ commit c3b6eaedd8707bca9892a0e188bf04532ca70818
	* src/argparse.c (show_help): Adjust for command style options.

2024-02-06  Werner Koch  <wk@gnupg.org>

	core: Add "wipe" mode flag.
	+ commit 49507cf6977f6c9fce1b651ae808e37b63fc3e4e
	* src/gpgrt-int.h (struct _gpgrt_stream_internal): Add field "wipe".
	* src/estream.c (mem_free2): New.
	(struct estream_cookie_mem): Add flag "wipe".
	(func_mem_create): Add arg wipe.
	(func_mem_destroy): Wipe.
	(X_WIPE): New.
	(parse_mode): Parse "wipe" mode flag.
	(init_stream_obj): Set it.
	(do_close): Wipe internal struct with its static buffers.
	(doreadline): Pass wipe mode along to help buffer.
	(_gpgrt_mopen): Pass wipe mode.
	(_gpgrt_fopenmem): Ditto.

	core: New function gpgrt_wipememory.
	+ commit 1fdd8749014cf390d6ea9dd4350146473362044e
	* src/init.c (_gpgrt_wipememory): New.
	* src/visibility.c (gpgrt_wipememory): New.
	* src/visibility.h: Add it.
	* src/gpg-error.def.in: Ditto.
	* src/gpg-error.vers: Ditto.

	argparser: Implement a command mode.
	+ commit b113114c7498fc6c48065a8c4816c610c6f08198
	* src/gpg-error.h.in (ARGPARSE_FLAG_COMMAND): New.
	* src/argparse.c (struct _gpgrt_argparse_internal_s): Add flags
	explicit_cmd_mode, cmd_mode, and command_seen.
	(initialize): Init them.  Mark default commands as commands.
	(handle_meta_command): New.
	(handle_metacmd): Add "command-mode" and "-command-mode".
	(find_long_option): Add arg only_commands.
	(arg_parse): Factor some code out to ...
	(handle_special_commands): new.
	(arg_parse): Implement the command-mode.

	* tests/t-argparse.c (main): Add some testing code.

2024-02-01  Jakub Jelen  <jjelen@redhat.com>

	gpgrt-config: Avoid warning about literals for curly braces.
	+ commit ae6fec7399d77e4e3a63287d94b1366ad121b505
	* src/gpgrt-config.in: Fix the pattern match for an expression with
	variable in the ".pc" config file.

2024-01-16  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Fix call to string filter for estream-printf.
	+ commit 4a9def77488f2631f71737357d9e9dd874c9b302
	* src/estream-printf.c (pr_string): Make sure to prepare
	NUL-terminated string to call the string filter.

2024-01-15  Ineiev  <ineiev@gnu.org>

	po: Update Russian translation.
	+ commit 521e8d4db70c5cf4d4977d93f9ff7adce5de023f


2024-01-15  Jakub Bogusz  <qboosh@pld-linux.org>

	po: update Polish translation.
	+ commit 5142d0d7a2a3b52456010d47bac44322009bb31a


2023-11-16  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Fix HTML output for backslash.
	+ commit f83eac17363a8c76c10b06712ba3dd39146f36b4
	* doc/yat2m.c (proc_texi_buffer): Use &bsol.

2023-11-15  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Implement @item handling with @table item specification.
	+ commit e31d65345bcb420a2e0ee609d91322abfde4aa44
	* doc/yat2m.c (MAX_TABLE_NESTING): New.
	(table_item_stack): New.
	(proc_texi_cmd): Add @gcctabopt and @gnupgtabopt.
	Add handling of @item argument with proc_texi_buffer.
	Add handling of @table argument, push to table_item_stack.

	yat2m: Also handle @file treating '-' as minus.
	+ commit cfb1871240c4d12c2d2b7c92e2ef7afb30692f88
	* doc/yat2m.c (proc_texi_cmd): It's minus for @file.

2023-11-14  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Output \- for @samp, @kbd, and @env, too.
	+ commit 7375b4c0acedc6333c9074db14a15fc2949f7752
	* doc/yat2m.c (proc_texi_cmd): Support more commands.

2023-11-09  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Generate \- for roff for some commands.
	+ commit 3534e2cc73f9339acc8d154e9551339e544507c6
	* doc/yat2m.c (proc_texi_cmd): New flag to enable generating \- for
	roff for @command, @code, @url and @option for their argument, and
	@example and @smallexample until their @end.
	(proc_texi_buffer): Emit \- when enabled.

2023-11-07  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Add support of @minus{} command.
	+ commit 8275d716bae68124c4c6bebde5305aed1dad5cd4
	* doc/yat2m.c (proc_texi_cmd): Support @minus.

	yat2m: Use \fP to return previous font.
	+ commit ab6324e5787a00d2f42638277542bc96b91de52e
	* doc/yat2m.c (proc_texi_cmd): Use \fP instead of \fR.

	yat2m: Fix backslash output in man.
	+ commit 6fe51354634361970761095f71e278b90b0dd4e7
	* doc/yat2m.c (proc_texi_buffer): Use \[rs] for backslash.

2023-11-07  Ben Kibbey  <bjk@luxsci.net>

	yat2m: Parse @dots{} to show ellipsis in HTML mode.
	+ commit db81ea1219e2baad0fadbc665465d3d03cbb4de2
	* doc/yat2m.c (proc_texi_cmd): Add "dots" to comamnd table and output
	  "..." in manpages and ellipsis in HTML mode.

2023-11-06  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: No en-dash and em-dash for @item line.
	+ commit 260f709413d8df6d0f2e65fb21685f8ce3038f5f
	* doc/yat2m.c (proc_texi_cmd): Disable parsing for dashes
	for @item.

2023-11-02  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Interpret -- and --- verbatimly in @example.
	+ commit c57e1b1435e6a09e547b18df6c458f9f32a1a513
	* doc/yat2m.c (example_cmd_active): New.
	(proc_texi_cmd): Don't apply the processing for en-dash
	and em-dash when it's in @example/@smallexample.

	yat2m: Support Texinfo input -- and ---.
	+ commit 82a8e2cece08fa0ca6aff9bdf62414731d384083
	* doc/yat2m.c (proc_texi_buffer): Handle en-dash and em-dash.

2023-10-05  NIIBE Yutaka  <gniibe@fsij.org>

	doc: Minor style fix.
	+ commit 53d9d77a496f5b6bc6616a95abfc053f396c1a12


2023-09-27  NIIBE Yutaka  <gniibe@fsij.org>

	estream: String filter should NOT be called with non-nul string.
	+ commit 0fc740ffca848d17b8c71d1682de1e29b24db3cb
	* src/estream-printf.c (pr_string): Call the string filter function SF
	conditionally to avoid possible SEGV.

2023-09-01  NIIBE Yutaka  <gniibe@fsij.org>

	Fix the previous commit.
	+ commit 19d7ec4bfeda6222b11ac92cd4509850322727fc


	build: Change the default for --with-libtool-modification.
	+ commit 071effebcf7db745f5d3bc2b8bb43ffaac54366e
	* configure.ac (--with-libtool-modification): default=never.

2023-08-09  NIIBE Yutaka  <gniibe@fsij.org>

	build: Update libtool-patch.sed.
	+ commit b369ef64e05a2336eb98a28a55dd02193aefaefa
	* build-aux/libtool-patch.sed: Fail with exit code 1,
	when it doesn't go well.

2023-08-08  NIIBE Yutaka  <gniibe@fsij.org>

	build: Use sed for --with-libtool-modification.
	+ commit 8dd210e9e15905f8c6d155c64b09378d65382335
	*  configure.ac (--with-libtool-modification): Use sed.

2023-08-04  NIIBE Yutaka  <gniibe@fsij.org>

	build: Add build-aux/libtool.patch in the tarball.
	+ commit 03a3b3c02cf220c6e7ee1acecef7403a64ddf4a3
	* Makefile.am (EXTRA_DIST): build-aux/libtool.patch.

2023-08-02  NIIBE Yutaka  <gniibe@fsij.org>

	build: New configure option --with-libtool-modification.
	+ commit 64532db11fcda9b886df74c00c730108852f4f52
	*  configure.ac (--with-libtool-modification): New.

2023-07-28  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix libtool modification.
	+ commit e0286bf0a22861f8eadb70a077644a2925baff00
	* build-aux/ltmain.sh: Fix reverting mistake.
	* build-aux/libtool.patch: Regenerate and fix whitespace mistake.
	* configure.ac [x86_64-*mingw32*] (libtool-patch): Exit when failed.

	build: Support --verbose option for mkheader.
	+ commit ab8b4d58035f4d3093b1df7c25c227e15b673f42
	* src/mkheader.c (include_file): Only emit the notification when
	invoked with --verbose.
	(main): Add --verbose handling.

	build: Apply libtool.patch at the last stage of configure.
	+ commit c1d3f5952f621a553c122cee7a20e990d982a715
	* build-aux/libtool.patch: New.
	* build-aux/ltmain.sh: Revert our local change to original.
	* configure.ac [x86_64-*mingw32*] (libtool-patch): Introduce a
	construct with AC_CONFIG_COMMANDS to apply build-aux/libtool.patch
	after libtool generation.

2023-07-27  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: No additional newline after the end of subsection.
	+ commit da48e3cb30be2897b733dbc9db271bfa166fd260
	* doc/yat2m.c (proc_texi_buffer): Add 'break' in switch.

	build: Recover the local change for libtool.
	+ commit ff2763c46c7a8f8f9f77f665060f1dc70e515e20
	* ltmain.sh: Prefix the SO number for W64 with a "6".

	build: Update libtool from version 2.4.7.
	+ commit 692c2990598689de1dae5867b0e966d7ffeae747
	* build-aux/compile, build-aux/depcomp, build-aux/ltmain.sh: Update.
	* m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4: Update.
	* m4/ltversion.m4, m4/lt~obsolete.m4: Update.

	build: Update autobuild.m4 from autobuild 5.3.
	+ commit f599ff4988dbf6739e020ee21c7e957387cc3237
	* m4/autobuild.m4: Update.

2023-07-17  NIIBE Yutaka  <gniibe@fsij.org>

	gpgscm: Incorporate changes from GnuPG.
	+ commit 0e8105a364c8cac68a254b5617a83987cc44fcff
	* gpgscm/scheme.c [__GNUC__] (type_to_string): Use
	__builtin_unreachable for GCC.

	* gpgscm/ffi.c (do_get_temp_path): Remove the last backslash.

	* gpgscm/ffi.c (do_chdir): Use gpg_error_from_syserror.

2023-06-12  Werner Koch  <wk@gnupg.org>

	yat2m: Fix Windows build.
	+ commit 3faf11925549260c3822660a2b83785a68326664
	* doc/yat2m.c (mystpcpy): New.  Use instead of stpcpy.

2023-06-09  Werner Koch  <wk@gnupg.org>

	w32: Map ERROR_FILE_INVALID to EIO.
	+ commit 32213bb48ea3520588f59ac96456adc156e2c4e8
	* src/estream.c (map_w32_to_errno): Add a mapping.

	yat2m: Add option --gnupgorg.
	+ commit 93d764498895e4cc9bdf14ac4c0cb41431946066


2023-06-01  Werner Koch  <wk@gnupg.org>

	yat2m: Some basic HTML formatting works now.
	+ commit 43dcdbff50fa33728ab4717cacdf8ff600aea3b9
	* doc/yat2m.c: Lots of changes for option --html.

2023-05-26  NIIBE Yutaka  <gniibe@fsij.org>

	Add GNU system support for cross compilation.
	+ commit 6877540eb1fcc159302b1722264e1059c9f32bc1
	* configure.ac: Cross compile should work well for
	GNU system.

2023-05-24  Werner Koch  <wk@gnupg.org>

	core: New mode flag "sequential" for gpgrt_fopen.
	+ commit 7a42ff0ec971f4f2add28b0edad6cf381b5b8acc
	* src/estream.c (X_SEQUENTIAL): New.
	(func_file_create_w32): Add arg flags_and_attrs,
	(parse_mode): Parse the new "sequenial" flag.
	(_gpgrt_fopen): Use the sequenial flag in sysopen mode under Windows.

2023-05-17  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Use _putenv_s when available.
	+ commit 89e53ad90f3aa4ee4379b91a8c8965bc87a39c53
	* src/sysutils.c (_gpgrt_setenv): Use _putenv_s when the macro
	_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES is defined.

2023-05-12  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Use -no-fast-install LDFLAGS for Windows.
	+ commit dfdd07c3c488735d87c13f89270eeb4fa5714ef8
	* tests/Makefile.am [HAVE_W32_SYSTEM] (AM_LDFLAGS): Conditionalize.

2023-04-10  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Simplify to set gpgrt_libdir.
	+ commit 9c17795ec25f3cb7cfd08cc1f9c5dcc1f33ec296
	* src/gpgrt-config.in (determine_gpgrt_libdir): Merge the two cases.

2023-04-06  Werner Koch  <wk@gnupg.org>

	Release 1.47.
	+ commit a25cea92798a5ece3f49924911507f5335915ecc


	build: Make distcheck work again.
	+ commit bcc16b4cd00f02fbb824a9b6fc69e00fc6458b19
	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add
	with --install-gpg-error-config.

	core: New error codes for PUKs and reset codes.
	+ commit 0262cd3371cf9794be94851955fec099b0e1fab5
	* src/err-codes.h.in (GPG_ERR_BAD_PUK): New
	(GPG_ERR_NO_RESET_CODE, GPG_ERR_BAD_RESET_CODE): New.

2023-04-04  NIIBE Yutaka  <gniibe@fsij.org>

	core: Add GPG_ERR_SOURCE_TKD.
	+ commit 1a382660855fb46da86980797acc50af1718c359
	* src/err-sources.h.in (GPG_ERR_SOURCE_TKD): New.

2023-04-01  NIIBE Yutaka  <gniibe@fsij.org>

	m4: Fix behavior with older gpg-error-config and gpgrt-config.
	+ commit c61e831b6f0c3c4bc9047e583ad3261bd9babefc
	* src/gpg-error.m4 (_AM_PATH_GPGRT_CONFIG): Set the variable
	gpg_error_config_version on error with gpgrt-config.

2023-03-23  NIIBE Yutaka  <gniibe@fsij.org>

	m4: Fallback to $possible_libdir1, when not found with $CC.
	+ commit ed36ba06f907c0d67f8a60930dc329d58a4cd77d
	* src/gpg-error.m4: Try $possible_libdir1 for gpgrt_libdir.

2023-03-21  Werner Koch  <wk@gnupg.org>

	Avoid segv in logging with improper use of the "socket://" .
	+ commit 68333be63042be281a497a5751474e9e3d119dc3
	* src/logging.c (fun_writer): Protect calling socket_dir_cb if not
	set.

2023-03-15  Werner Koch  <wk@gnupg.org>

	build: Improve the beta numbering by autogen.sh.
	+ commit fbbc55b3febef6d22dae5e2675c75b1d1f561b09
	* autogen.sh: Introduce a 3rd matchstr and simplify rules.

2022-12-16  Werner Koch  <wk@gnupg.org>

	core: Fix translations of --help.
	+ commit 885a287a57cf060b4c5b441822c09d23b8dee2bd
	* src/argparse.c (show_help): Do not translate the empty string.

2022-12-13  pengyi  <pengyi37@huawei.com>
	    NIIBE Yutaka  <gniibe@fsij.org>

	Add more tests for t-printf and t-strerror.
	+ commit 72e0fb3fc858301de7b200e1c08da6904ab44bc0
	* tests/t-printf.c (check_fwrite): New.
	(main): Add check_fwrite.
	* tests/t-strerror.c (main): Add three more cases to LIST.

2022-12-05  NIIBE Yutaka  <gniibe@fsij.org>

	Handle strerror_r failure on non-GNU systems.
	+ commit be94bcf6aace55e319a203c6b60e31b1c204b0dc
	* src/strerror.c (system_strerror_r): Make sure to fill the buffer.

2022-11-29  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Support a simple invocation.
	+ commit 3f812a0f5df8aaa82372ea0c40573703119ed83d
	* src/gpgrt-config.in (determine_gpgrt_libdir): New.

2022-11-29  NIIBE Yutaka  <gniibe@fsij.org>
	    Andreas Metzler  <ametzler@debian.org>

	doc: Add man page of gpgrt-config.
	+ commit 4c6890aca2d0234fdc3da4678a003160091dc0dd
	* doc/Makefile.am (myman_pages): Add gpgrt-config.1.
	* doc/gpgrt.texi: Add gpgrt-config.1.

2022-11-15  NIIBE Yutaka  <gniibe@fsij.org>

	gpg-error.m4: Factor out _AM_PATH_GPGRT_CONFIG.
	+ commit 788f63347eda2d35ba5d9dad5e339743343d2f66
	* src/gpg-error.m4 (_AM_PATH_POSSIBLE_GPG_ERROR_CONFIG): New.
	(_AM_PATH_GPGRT_CONFIG): New.
	(AM_PATH_GPG_ERROR): Use _AM_PATH_POSSIBLE_GPG_ERROR_CONFIG
	and _AM_PATH_GPGRT_CONFIG.

	Revert "spawn: Expose spawn functions."
	+ commit c580094dbe97249caebdedbf0f584e604fd20240
	This reverts commit 43c1e85fe29a52a9debc068d97c5860a4694b821.

2022-11-04  NIIBE Yutaka  <gniibe@fsij.org>

	spawn: Introduce gpgrt_process_t and use it for spawn API.
	+ commit 5d30adb5ad376a07576b258b9395adadf5576867
	* configure.ac (AC_FUNC_FORK): No use.
	* src/gpg-error.h.in (@define:gpgrt_process_t@): New.
	(@define:pid_t@): Remove.
	(gpgrt_spawn_process, gpgrt_spawn_process_fd): Use gpgrt_process_t.
	(gpgrt_wait_process, gpgrt_wait_processes): Likewise.
	(gpgrt_kill_process, gpgrt_release_process): Likewise.
	* src/gpgrt-int.h (_gpgrt_spawn_process): Likewise.
	(_gpgrt_spawn_process_fd): Likewise.
	(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
	(_gpgrt_kill_process, _gpgrt_release_process): Likewise.
	* src/mkheader.c (write_special): Handle @define:gpgrt_process_t@.
	Remove handling of @define:pid_t@.
	* src/spawn-posix.c (_gpgrt_spawn_process): Use gpgrt_process_t.
	(_gpgrt_spawn_process_fd): Likewise.
	(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
	(_gpgrt_kill_process, _gpgrt_release_process): Likewise.
	* src/spawn-w32.c (_gpgrt_spawn_process): Use gpgrt_process_t.
	(_gpgrt_spawn_process_fd): Likewise.
	(_gpgrt_wait_process, _gpgrt_wait_processes): Likewise.
	(_gpgrt_kill_process, _gpgrt_release_process): Likewise.

2022-10-31  NIIBE Yutaka  <gniibe@fsij.org>

	spawn: Fix spawn_cb of gpgrt_spawn_process_fd.
	+ commit 6c20e8393eba4a9f330143b2158e28ea594cbadd
	* src/gpg-error.def.in (gpgrt_close_all_fds): New.
	* src/gpg-error.vers (gpgrt_close_all_fds): New.
	* src/gpg-error.h.in (GPGRT_SPAWN_INHERIT_FILE): New.
	(gpgrt_spawn_process_fd): SPAWN_CB having return value.
	* src/gpgrt-int.h (_gpgrt_spawn_process_fd): SPAWN_CB change.
	* src/spawn-posix.c (_gpgrt_close_all_fds): Rename from close_all_fds,
	and export it.
	(do_exec): Support the case not closing fds.
	(_gpgrt_spawn_process_fd): Handle return value of SPAWN_CB to
	determine closing all fds or not.
	* src/spawn-w32.c (_gpgrt_spawn_process_fd): Run SPAWN_CB.
	(_gpgrt_close_all_fds): New.
	* src/visibility.c (gpgrt_close_all_fds): New.
	* src/visibility.h (gpgrt_close_all_fds): New.

2022-10-27  NIIBE Yutaka  <gniibe@fsij.org>

	spawn: Expose spawn functions.
	+ commit 43c1e85fe29a52a9debc068d97c5860a4694b821
	* src/gpg-error.def.in: Update.
	* src/gpg-error.vers: Update.
	* src/gpg-error.h.in: Add declarations.
	* src/visibility.c: Add implementations.
	* src/visibility.h: Expose them.

2022-10-20  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt_spawn_process, gpgrt_spawn_process_fd: Change the API.
	+ commit 5ad97e8fa62882b2014a67b4e57dab3b37ccaf4c
	* src/gpg-error.h.in (gpgrt_spawn_process): Remove PREEXEC argument.
	(gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG.
	* src/gpgrt-int.h (_gpgrt_spawn_process): Remove PREEXEC argument.
	(_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG.
	* src/spawn-posix.c (do_exec): Remove PREEXEC argument.
	(_gpgrt_spawn_process): Remove PREEXEC argument.
	(_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG.
	(_gpgrt_spawn_process_detached): Follow the change of do_exec.
	* src/spawn-w32.c (_gpgrt_spawn_process): Remove PREEXEC argument.
	(_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG.
	* src/visibility.c (gpgrt_spawn_process): Remove PREEXEC argument.
	(gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG.

2022-10-19  NIIBE Yutaka  <gniibe@fsij.org>

	spawn: Update changes from gnupg.
	+ commit 494886acb0bf3d536f4e620340e42c8ec8947742
	* src/gpg-error.h.in (GPGRT_SPAWN_KEEP_STDIN): New.
	(GPGRT_SPAWN_KEEP_STDOUT, GPGRT_SPAWN_KEEP_STDERR): New.
	* src/gpgrt-int.h: Add comment.
	* src/spawn-posix.c (do_exec): Add the argument FLAGS.
	(_gpgrt_spawn_process): Add FLAGS.
	(_gpgrt_spawn_process_fd): Follow the change.
	(_gpgrt_spawn_process_detached): Likewise.
	* src/spawn-w32.c (_gpgrt_spawn_process): Handle FLAGS.

2022-10-11  NIIBE Yutaka  <gniibe@fsij.org>

	build: Remove potomo from repo.
	+ commit be4f289a5c09f43cb6b893bdc709a743a100be15
	* potomo: Remove.

2022-10-07  Werner Koch  <wk@gnupg.org>

	Release 1.46.
	+ commit ea031873aa9642831017937fd33e9009d514ee07


2022-09-21  Damien Goutte-Gattat  <dgouttegattat@incenp.org>

	m4: Fix detection of gpgrt's libdir.
	+ commit 628cb1a786bd5d420be17c2e9ffd407f4fbf517e
	* src/gpg-error.m4 (GPGRT_CONFIG): Handle the case where none of the
	system lib directories contain a pkgconfig subdirectory.

2022-09-19  Damien Goutte-Gattat via Gnupg-devel  <gnupg-devel@gnupg.org>

	build: Fix installation of gpg-error-config.1.
	+ commit b5043421d2b3ff5999e88808737ff400bf15b0ee
	* doc/Makefile.am (myman_pages): Rename man page to gpg-error-config.1
	and only install if gpg-error-config itself is installed.

2022-09-15  NIIBE Yutaka  <gniibe@fsij.org>

	yat2m: Use __noreturn__ attribute.
	+ commit a86ad1cbb6bd83cb30ab87f5ad1c70077288a8da
	* doc/yat2m.c (ATTR_NR_PRINTF): Use __noreturn__.

	Remove extra semicolons.
	+ commit 6f103890e9728072e1c9c1e0a1d7f87220d8eecc
	* src/gpgrt-int.h: Remove extra.
	* src/visibility.h: Likewise.

2022-09-08  NIIBE Yutaka  <gniibe@fsij.org>

	Silence compiler warnings.
	+ commit 10dc853291a1786f061e01cdcf477be0c31441b1
	* src/argparse.c (show_version): It's no args.
	(_gpgrt_log_get_fd, _gpgrt_log_get_stream): Likewise.

2022-08-25  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Strip system paths for --cflags and --libs.
	+ commit 4615816f71e91f4c3bb8b0e4122dd153ec7c1927
	* src/gpgrt-config.in: Strip -I and -L with system paths.

2022-08-17  Ingo Klöcker  <dev@ingo-kloecker.de>

	build: Omit -L<libdir> for standard paths on some 64-bit systems.
	+ commit fcb19dbfd49338e5c282e2853d71d66a0594d3c1
	* configure.ac (GPG_ERROR_CONFIG_LIBS): Handle the case $libdir =
	'${exec_prefix}/lib64'.

2022-08-15  NIIBE Yutaka  <gniibe@fsij.org>

	build: Only install gpg-error-config when enabled.
	+ commit 0b47de9c719b0ed0da0791f0525de073737bde5a
	* configure.ac (INSTALL_GPG_ERROR_CONFIG): New.
	* src/Makefile.am (bin_SCRIPTS, noinst_SCRIPTS): Conditionalize.

2022-08-02  Werner Koch  <wk@gnupg.org>

	w32: Convert REG_DWORD values to a string.
	+ commit 745d333cf7b5b6fee62e3b26c8a2ccc004e017da
	* src/w32-reg.c (_gpgrt_w32_reg_query_string): Handle REG_DWORD

2022-07-28  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix for bidirectional pipe.
	+ commit 25701f105b947500f920eb5a13e328f8f7843d38
	* src/estream.c (func_w32_seek): Return an error with ESPIPE, when
	it's pipe.

2022-07-22  NIIBE Yutaka  <gniibe@fsij.org>

	doc: Update gpgrt.texi for old gpg-error-config script.
	+ commit 1e7d0d3ef627f3cdee70b8409f04d7e2ecf4fdd6
	* doc/gpgrt.texi: Address pkg-config.  Manual entry is for
	gpg-error-config.  gpgrt-config is an internal command for
	gpg-error.m4.

2022-07-19  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix configure script.
	+ commit 64bcee3c467d837694d225e15981ea76ebf7e7b9
	* configure.ac (AC_HEADER_TIME): Remove obsolete AC macro.
	(AC_CHECK_SIZEOF(time_t)): Remove unneeded check.

	build: Update config.guess, config.sub, and config.rpath.
	+ commit b1b808f30f83e92e7d30a9336588c15553699a7b
	* build-aux/config.guess: Update from upstream.
	* build-aux/config.sub: Ditto.
	* build-aux/config.rpath: Update from gettext 0.21.

2022-06-28  NIIBE Yutaka  <gniibe@fsij.org>

	Remove Windows CE support.
	+ commit 14ead267268f8ed14bf1ab49189646a95654b706
	* contrib/*: Remove.
	* Makefile.am: Remove contrib.
	* autogen.sh: Remove Windows CE support.
	* configure.ac (have_w32ce_system): Remove.
	* src/Makefile.am [HAVE_W32CE_SYSTEM] (extra_cppflags): Remove.
	(gpg_extra_headers): Remove.
	(EXTRA_DIST): Remove mkw32errmap.c and w32ce-add.h
	(BUILT_SOURCES): Remove mkw32errmap.map.c.
	(tmp_files): Remove mkw32errmap.tab.h mkw32errmap.map.c
	(CLEANFILES): Likewise.
	* src/estream-printf.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/estream.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/gpg-error.def.in [HAVE_W32CE_SYSTEM]: Remove.
	* src/gpgrt-int.h: Fix comment.
	* src/init.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/init.h [HAVE_W32CE_SYSTEM]: Remove.
	* src/mkheader.c: Remove Windows CE support.
	* src/mkw32errmap.c, src/w32ce-add.h: Remove.
	* src/spawn-posix.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/spawn-w32.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/sysutils.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/w32-estream.c [HAVE_W32CE_SYSTEM]: Remove.
	* src/w32-reg.c [HAVE_W32CE_SYSTEM]: Remove.
	* tests/Makefile.am [HAVE_W32CE_SYSTEM]: Remove.

	Typo fix in autogen.sh.
	+ commit 084d135f44a027e86f1005c893935464ffbc4b82
	* autogen.sh: Fix typo.

2022-04-07  Werner Koch  <wk@gnupg.org>

	Release 1.45.
	+ commit dbac537e5e865fb6f3aa8596d213aa8c47a9dea1


2022-04-07  NIIBE Yutaka  <gniibe@fsij.org>

	logging: Fix the previous commit.
	+ commit 74e6afcc36b28b0acc49fbe25f29b42d1a223caf
	* src/logging.c (set_file_fd): Open with append mode.

	logging: Fix gpgrt_log_get_fd for file.
	+ commit 5ef201c10b1cc870ae06e34ad02bb5da0a763bfe
	* src/logging.c (fun_writer): Only use this for socket writing.
	(set_file_fd): Use es_stderr when "-".
	Use the stream by _gpgrt_fdopen when FD is specified.
	Use the stream by _gpgrt_fopen when name is not socket.
	Only use the stream by _gpgrt_fopencookie for socket.
	[HAVE_W32CE_SYSTEM]: Remove W32CE support.

2022-04-04  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Add ES_SYSHD_SOCK support for gpgrt_sysopen.
	+ commit 018ea46a30cf4eda70070ba42c4fee642fb2fd8a
	* src/mkheader.c (write_special): Support @SOCKET_t@ substitution.
	* src/gpgrt-int.h (gpgrt_stream_backend_kind_t): Add BACKEND_SOCK.
	* src/gpg-error.h.in (struct _gpgrt_syshd): Use @SOCKET_t@.
	* src/estream.c [HAVE_W32_SYSTEM] (estream_cookie_sock_t): New.
	[HAVE_W32_SYSTEM] (func_sock_create, func_sock_read): New.
	[HAVE_W32_SYSTEM] (func_sock_write, func_sock_seek): New.
	[HAVE_W32_SYSTEM] (func_sock_destroy, func_sock_ioctl): New.
	[HAVE_W32_SYSTEM] (estream_functions_sock, do_sockopen): New.
	[HAVE_W32_SYSTEM] (do_sysopen): Call do_sockopen.

2022-03-29  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix handle_to_pid for MinGW-w64.
	+ commit 660db9c9a90f377fc14a5d659d974d68d782b2d1
	* src/spawn-w32.c (handle_to_pid): Use pid_t to coerce the type.

2022-03-28  NIIBE Yutaka  <gniibe@fsij.org>

	core: Fix support of posix-lock for FreeBSD.
	+ commit 6e17e70bb7eea1f6ed4c08f795ea65a09f89d38f
	* src/posix-lock.c [__FreeBSD__] (use_pthread_p): Use
	pthread_key_create to determine if it's linked to lpthread or not.

	yat2m: Only emit a message of the page with --verbose option.
	+ commit 70489b4f75c0afcb1b5c65e579b231d8f657b8c6
	* doc/yat2m.c (finish_page): Conditionalize the output with VERBOSE.

2022-03-25  NIIBE Yutaka  <gniibe@fsij.org>

	w32: Fix for MinGW which doesn't define EOPNOTSUPP.
	+ commit 8e67e8c3f21c798ff1f4862b0e7228825e6dd4f6
	* src/w32-estream.c: Add EOPNOTSUPP.

2022-03-04  Werner Koch  <wk@gnupg.org>

	w32: Support file names longer than MAX_PATH.
	+ commit 32dad4e4135f0bdc436ed684da753d4b0cdb0ea1
	* src/sysutils.c (any8bitchar): Remove.
	(_gpgrt_fname_to_wchar): New.
	(_gpgrt_mkdir): Use instead of plain utf8 conversion.
	(_gpgrt_access): Reimplement using GetFileAttributesW so that long
	files names are supported.
	* src/estream.c (_gpgrt_w32_get_last_err_code): New.
	(func_file_create_w32): New.
	(_gpgrt_fopen): Handle the "sysopen" mode flag.  Support mapping of
	/dev/null.
	(_gpgrt_freopen): Support mapping of /dev/null.
	* src/w32-gettext.c (load_domain): Allow long file names.

	* src/visibility.c (gpgrt_free_wchar): Make function public.
	(gpgrt_fname_to_wchar): Ditto.
	(gpgrt_utf8_to_wchar): Ditto.
	(gpgrt_wchar_to_utf8): Ditto.
	* src/w32-add.h  (gpgrt_free_wchar): New prototype.
	(gpgrt_fname_to_wchar): Ditto.
	(gpgrt_utf8_to_wchar): Ditto.
	(gpgrt_wchar_to_utf8): Ditto.
	* src/gpg-error.def.in: Add them here too.

2022-02-17  NIIBE Yutaka  <gniibe@fsij.org>

	gpg-error.m4: Fix use with older gpgrt-config (< 1.33).
	+ commit 666d64d2bc6539d0ca03dea69abc5a8ccdf37be5
	* src/gpg-error.m4: When gpgrt-config doesn't work expected for
	gpg-error.pc, unset GPGRT_CONFIG.

2022-02-01  NIIBE Yutaka  <gniibe@fsij.org>

	build,tests: Fix detection of have_lock_optimization.
	+ commit 433aba9e778ebe9500c29ae1ae34999d48e98a19
	* configure.ac: Lock optimization (without sys/single_threaded.h) is
	only known to work on GNU system, using weak symbol.

2022-01-27  Werner Koch  <wk@gnupg.org>

	Release 1.44.
	+ commit 54eff9cb9ac86809f3217179eb1029058d4a7936
	* configure.ac: Bump LT version to C32/A32/R2.

2022-01-27  Emir SARI  <emir_sari@icloud.com>

	Add Turkish translations.
	+ commit 663b91fe91af0bb290fe18092896a8917bf51e14


2022-01-25  Werner Koch  <wk@gnupg.org>

	core: Fix returning of option attributes for options with args.
	+ commit 5ab088aba9f05b480c311e94d45a88728ac9320b
	* src/argparse.c (_gpgrt_argparse): Set attributes info flags

2022-01-18  Daniel Kahn Gillmor  <dkg@fifthhorseman.net>

	build: Detect more flexible musl variants of GNU.
	+ commit 0150919b6a8244be1055d01ad21d6fa47788ab0e
	* configure.ac: expand *-*-linux-musl to *-*-linux-musl*.

2022-01-18  NIIBE Yutaka  <gniibe@fsij.org>

	po,w32: Directly run msgfmt at install-data-hook.
	+ commit b26220f92fa668e185dbf2bcc5006c6e74b20073
	* Makefile.am (EXTRA_DIST): Remove potomo.
	[HAVE_W32_SYSTEM] (install-data-hook): Run msgfmt.

	po: Update files from gettext 0.21 to match m4/po.m4.
	+ commit b37c68f28a921d1c03507469f4af53e012ef7679
	* po/Makefile.in.in: Update.
	* po/Makevars: Update.
	* po/Rules-quot: Update.
	* po/insert-header.sin: Update.
	* po/remove-potcdate.sin: Update.

2021-12-22  NIIBE Yutaka  <gniibe@fsij.org>

	build: Recover and update *.m4.
	+ commit 973dbdbfc90136798cfa4001166a40b904fdad70
	* m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: Copied
	from gnulib.
	* m4/po.m4, m4/nls.m4, m4/progtest.m4: Likewise.
	* m4/gettext.m4, m4/iconv.m4: Update from gnulib.
	* m4/host-cpu-c-abi.m4: New from gnulib.

	build: Remove obsolete m4 files.
	+ commit 980e4410bb0a372a7bcce5f454915e6565a56b96
	* m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intmax.m4: Remove.
	* m4/inttypes-h.m4, m4/inttypes-pri.m4, m4/inttypes.m4: Remove.
	* m4/inttypes_h.m4, m4/isc-posix.m4, m4/lcmessage.m4: Remove.
	* m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: Remove.
	* m4/longdouble.m4, m4/longlong.m4, m4/nls.m4, m4/po.m4: Remove.
	* m4/printf-posix.m4, m4/progtest.m4, m4/signed.m4: Remove.
	* m4/size_max.m4, m4/stdint_h.m4, m4/uintmax_t.m4: Remove.
	* m4/ulonglong.m4, m4/visibility.m4, m4/wchar_t.m4: Remove.
	* m4/wint_t.m4, m4/xsize.m4: Remove.

2021-12-17  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Fix gpg-error-config-test for PKG_CONFIG_LIBDIR.
	+ commit 8d2bd9a0d4bba9b820bc03a9275441c39182d5b7
	* src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_LIBDIR.

2021-12-15  NIIBE Yutaka  <gniibe@fsij.org>

	build: Update configure.ac for newer autoconf.
	+ commit f5e043ad271f431f2c35fc6b22fc51b448507b01
	* configure.ac (AC_PREREQ): Require 2.69 or later.
	(AC_CONFIG_HEADERS): Replace AC_CONFIG_HEADER.
	(AC_HEADER_STDC): Remove.
	* m4/codeset.m4: Update from gnulib.

2021-12-13  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix have_lock_optimization code for 'guessing yes'.
	+ commit f15c06951bb91eb0a4ab54f6707b6e21448945f9
	* configure.ac: Support 'guessing yes' for gl_cv_have_weak.

	build: Detect a system with musl, as a variant of GNU System.
	+ commit e17cf023d894acc3932505f66fbd9c31ce56793f
	* configure.ac: Add *-*-linux-musl.

2021-12-07  Jakub Jelen  <jjelen@redhat.com>

	configure: Add missing check for logging.
	+ commit 7fac8e02d80d139f43fc5fd179618ab769512124
	* configure.ac: Add missing check for inet_pton to avoid using inet_addr
	  in modern systems.

2021-11-29  NIIBE Yutaka  <gniibe@fsij.org>

	tests,w32: Use CreatePipe and es_sysopen.
	+ commit 858bcd4343ac40566825cfa861ee60bcc54cb6c8
	* tests/t-poll.c (create_pipe): Use CreatePipe.

2021-11-25  NIIBE Yutaka  <gniibe@fsij.org>

	build,tests: Run t-lock-single-posix only on platforms supported.
	+ commit 50e0f32b19356fd7c64c799192379ff2204cd8a3
	* configure.ac (HAVE_LOCK_OPTIMIZATION): New.
	* tests/Makefile.am: Use HAVE_LOCK_OPTIMIZATION for
	t-lock-single-posix.

2021-11-19  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix dependency to gpg-error-config-test.sh.
	+ commit 0fcfca8e9ffa25836f391df75f5b3bb1b7dc1a69
	* src/Makefile.am (gpg-error-config): It depends on configure
	generated gpg-error-config-test.sh.

2021-11-12  NIIBE Yutaka  <gniibe@fsij.org>

	build: Fix for configure generated files.
	+ commit fd83c3e29744c8d7829df3de8c10f9c68f11e429
	* src/Makefile.am (bin_SCRIPTS): Add gpgrt-config.
	(EXTRA_DIST): Add gpgrt-config.in and gpg-error-config-test.sh.in.
	(CLEANFILES): Add configure generated files.

	configure: Escape includedir/libdir to defer interpretation of vars.
	+ commit 1e5b17f4284ea2904c65d08097735a1a4a8879a1
	configure.ac: Escape includedir for GPG_ERROR_CONFIG_CFLAGS.
	Escape libdir for GPG_ERROR_CONFIG_LIBS.

2021-11-04  NIIBE Yutaka  <gniibe@fsij.org>

	estream: Only include sys/select.h when needed.
	+ commit 61843dace32f12475b1ade5423deaa0421cbbc0b
	* src/estream.c: The select function is only used when poll is not
	available.  So, let it include the header file only when needed.

2021-11-03  Werner Koch  <wk@gnupg.org>

	Release 1.43.
	+ commit d7fb04832a71a2c1509d45027798f184ca274f8d


2021-11-03  Ineiev  <ineiev@gnu.org>

	po: Update Russian translation.
	+ commit 983a1b491ea6dfa7bb1868a6ac41fb9222bbe301


2021-11-03  Werner Koch  <wk@gnupg.org>

	argparse: Add more system variables.
	+ commit 62755bcd302eca755d52b80b62dc17ae0e683b75
	* src/argparse.c (get_var): Fix "_windows", add "_gpgrtversion" and
	"strusageN".
	(handle_meta_if): Avoid evaluating inactive branches.
	* tests/t-argparse.conf: Add a few other outputs.

2021-10-31  Werner Koch  <wk@gnupg.org>

	argparse: Add support to read values from the Windows Registry.
	+ commit b1790f4cc71f14422255bbfba78e91f037e035dd
	* src/argparse.c (struct variable_s): New.
	(struct _gpgrt_argparse_internal_s): New fields expand, if_cond,
	if_active and vartbl.
	(deinitialize): Free vartbl.
	(initialize): Clear new vars.
	(get_var): New.
	(substitute_vars): New.
	(set_variable): New.
	(handle_meta_if): New.
	(handle_meta_let): New.
	(handle_meta_getenv): New.
	(handle_meta_echo): Re-implement in terms of variabale substitution.
	(handle_meta_expand): New.
	(handle_metacmd): Add new meta commands.
	(_gpgrt_argparse): Expand values if enabled.
	(_gpgrt_argparse): Take care of conditions.
	(_gpgrt_argparser): Reset some state at the end of a file.

	* tests/etc/t-argparse.conf: Adjust for changed system variables.
	* tests/t-argparse.c (my_strusage): Add a value for a version test.
	(main): Add new option "street".
	* tests/t-argparse.conf: A couple if additions for the new conditions.

2021-10-22  Werner Koch  <wk@gnupg.org>

	core: new internal function _gpgrt_w32_reg_get_string.
	+ commit 2a32501a561a5d70069bcb6e7e87fb949370520e
	* src/w32-reg.c (_gpgrt_w32_reg_query_string): Allow abbreviated root
	names.
	(_gpgrt_w32_reg_get_string): New.

2021-09-27  NIIBE Yutaka  <gniibe@fsij.org>

	libtool: Link without -flat_namespace for macOS.
	+ commit a3987e44970505a5540f9702c1e41292c22b69cf
	* m4/libtool.m4: Not setting 10.0 to MACOSX_DEPLOYMENT_TARGET when not
	defined.  Only specify -flat_namespace to linker for specific
	(older) versions and hosts.

2021-09-10  NIIBE Yutaka  <gniibe@fsij.org>

	gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="".
	+ commit 6b08dd09864e7fbb424296ad490f9fe65c9bc247
	* src/gpgrt-config.in: Correctly detect the case.

2021-08-26  NIIBE Yutaka  <gniibe@fsij.org>

	tests: Add a test for locking when single thread.
	+ commit 2b476b3ebc1d13d681594c15505844766c0fbc4b
	* tests/Makefile.am (TESTS): Add t-lock-single-posix.
	* tests/t-lock-single-posix.c: New.

2021-08-06  NIIBE Yutaka  <gniibe@fsij.org>

	posix-lock: Support GNU C library 2.34 or later.
	+ commit 67595e8244ed67910f7372873cdbf674c2e85403
	* configure.ac: Add check for sys/single_threaded.h.
	* src/posix-lock.c [USE_POSIX_THREADS_FROM_LIBC]: Use
	__libc_single_threaded to detect if it's single threaded.

	m4: Merge our local change for threadlib.m4.
	+ commit 8538a83fd1b5e54d7dbe6dc9042cc74942e38e51
	* m4/threadlib.m4: Add THREADLIB_CPPFLAGS support.

	m4: Update m4/threadlib.m4 from gnulib.
	+ commit 7ad1ff9673e4589880170b9f84df93510b044814
	* m4/threadlib.m4: Update.

2021-08-05  NIIBE Yutaka  <gniibe@fsij.org>

	build: Simplify checking headers.
