<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libgpg-error/src/sysutils.c, branch gpgrt-1.50</title>
<subtitle>Error codes used by GnuPG et al.</subtitle>
<id>http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/libgpg-error/atom?h=gpgrt-1.50'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/'/>
<updated>2023-05-17T03:03:06Z</updated>
<entry>
<title>w32: Use _putenv_s when available.</title>
<updated>2023-05-17T03:03:06Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2023-05-17T03:03:06Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=89e53ad90f3aa4ee4379b91a8c8965bc87a39c53'/>
<id>urn:sha1:89e53ad90f3aa4ee4379b91a8c8965bc87a39c53</id>
<content type='text'>
* src/sysutils.c (_gpgrt_setenv): Use _putenv_s when the macro
_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES is defined.

--

Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>Avoid segv in logging with improper use of the "socket://" .</title>
<updated>2023-03-21T09:34:52Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2023-03-21T09:33:34Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=68333be63042be281a497a5751474e9e3d119dc3'/>
<id>urn:sha1:68333be63042be281a497a5751474e9e3d119dc3</id>
<content type='text'>
* src/logging.c (fun_writer): Protect calling socket_dir_cb if not
set.
--

If no callback has been registered the use of the "socket://" shortcut
caused a segv.
</content>
</entry>
<entry>
<title>Remove Windows CE support.</title>
<updated>2022-06-28T03:05:04Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-06-28T03:05:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=14ead267268f8ed14bf1ab49189646a95654b706'/>
<id>urn:sha1:14ead267268f8ed14bf1ab49189646a95654b706</id>
<content type='text'>
* 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.

--

GnuPG-bug-id: 5912
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>w32: Support file names longer than MAX_PATH.</title>
<updated>2022-03-04T12:58:09Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2022-03-04T12:41:19Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=32dad4e4135f0bdc436ed684da753d4b0cdb0ea1'/>
<id>urn:sha1:32dad4e4135f0bdc436ed684da753d4b0cdb0ea1</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>Release 1.40</title>
<updated>2020-12-21T09:46:45Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-12-21T09:46:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=c1f4ed561e9d214be9fdc3005134b9d0ed87554f'/>
<id>urn:sha1:c1f4ed561e9d214be9fdc3005134b9d0ed87554f</id>
<content type='text'>
* configure.ac: Bump LT version to C31/A31/R0.
</content>
</entry>
<entry>
<title>w32: Allow Unicode for internal getusername function.</title>
<updated>2020-12-21T09:06:11Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-12-21T09:06:11Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=007cfe8a0ca4c03412f031878d6ce232612a90d8'/>
<id>urn:sha1:007cfe8a0ca4c03412f031878d6ce232612a90d8</id>
<content type='text'>
* src/sysutils.c (_gpgrt_getusername) [W32]: Use GetUserNameW.
--

This is used by argparse for user specific parts.  Tested using the
echo meta-command.

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>New public function gpgrt_access.</title>
<updated>2020-10-19T13:21:59Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-10-19T13:21:59Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=4764c5a3a4d704b3b42bafc5eba3996579030703'/>
<id>urn:sha1:4764c5a3a4d704b3b42bafc5eba3996579030703</id>
<content type='text'>
* src/gpg-error.h.in (gpgrt_access): New.
* src/gpg-error.vers. src/gpg-error.def.in: Add new function.
* src/sysutils.c (any8bitchar): New.
(_gpgrt_access): New.
* src/visibility.c (gpgrt_access): New.

* src/spawn-w32.c (_gpgrt_spawn_process_detached): Use it.
* src/argparse.c (try_versioned_conffile): Use it.
* tests/t-stringutils.c (check_access): New simple test.
--

This is basically a wrapper to allow handling of utf8 encoded file
names on Windows.  This also fixes the case for versioned config files
in directories with non-ascii characters.

The new test needs to be run manually on Windows using a directory
with Unicode characters.

GnuPG-bug-id: 5098
</content>
</entry>
<entry>
<title>w32: Support utf8 also for getcwd.</title>
<updated>2020-10-09T13:36:51Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-10-09T13:36:51Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=dbedf190969de1a796560cfa15fb4ea986bc79dc'/>
<id>urn:sha1:dbedf190969de1a796560cfa15fb4ea986bc79dc</id>
<content type='text'>
* src/sysutils.c (_gpgrt_getcwd) [W32]: Implement utf-8 support.
* src/w32-gettext.c (wchar_to_native): Factor some code out to ..
(wchar_to_cp): new.
(_gpgrt_wchar_to_utf8): New.
* tests/t-stringutils.c: Include windows.h.
(utf8_to_wchar): New.
(wchar_to_utf8): New.
(mygetcwd): Use wchar version for Windows.
(main): New option --pwd.
</content>
</entry>
<entry>
<title>core,w32: Add UTF-8 support to gpgrt_fopen, gpgrt_mkdir and gpgrt_chdir.</title>
<updated>2020-08-21T19:11:21Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-08-21T19:11:21Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=a68c1975bda47b0698b48761a62e95b371095e9a'/>
<id>urn:sha1:a68c1975bda47b0698b48761a62e95b371095e9a</id>
<content type='text'>
* src/protos.h: New.
* src/Makefile.am (libgpg_error_la_SOURCES): Add file.
* src/gpgrt-int.h: Include protos.h.
* src/sysutils.c (_gpgrt_mkdir) [W32]: Make UTF-8 aware.
(_gpgrt_chdir) [W32]: Ditto.
* src/w32-gettext.c: Include protos.h.
(utf8_to_wchar): Allow for strings.
(_gpgrt_utf8_to_wchar): New.
(_gpgrt_free_wchar): New.
* src/estream.c (map_w32_to_errno): Add more error codes.
(_gpgrt_w32_set_errno): New.
(any8bitchar) [W32]: New helper.
(func_file_create) [W32]: Convert file name and use _wopen.
--

GnuPG-bug-id: 4083
Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
<entry>
<title>core: Implement meta command [user] also for Windows</title>
<updated>2020-04-03T20:03:16Z</updated>
<author>
<name>Werner Koch</name>
<email>wk@gnupg.org</email>
</author>
<published>2020-04-03T20:03:16Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/libgpg-error/commit/?id=ef07aedc70992742fcef92811345670777a3047b'/>
<id>urn:sha1:ef07aedc70992742fcef92811345670777a3047b</id>
<content type='text'>
* src/argparse.c (initialize): Clear username.
* src/sysutils.c (_gpgrt_getusername): Implement for Windows.
--

This also fixes a missing intialization

Signed-off-by: Werner Koch &lt;wk@gnupg.org&gt;
</content>
</entry>
</feed>
