1. 07 Apr, 2022 1 commit
  2. 04 Mar, 2022 1 commit
    • Werner Koch's avatar
      w32: Support file names longer than MAX_PATH. · 32dad4e4
      Werner Koch authored
      * 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.
      32dad4e4
  3. 17 Feb, 2022 1 commit
  4. 01 Feb, 2022 1 commit
  5. 27 Jan, 2022 4 commits
  6. 25 Jan, 2022 1 commit
  7. 18 Jan, 2022 3 commits
  8. 22 Dec, 2021 2 commits
    • NIIBE Yutaka's avatar
      build: Recover and update *.m4. · 973dbdbf
      NIIBE Yutaka authored
      * 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.
      
      --
      
      Fixes-commit: 980e4410
      
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      973dbdbf
    • NIIBE Yutaka's avatar
      build: Remove obsolete m4 files. · 980e4410
      NIIBE Yutaka authored
      
      
      * 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.
      
      --
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      980e4410
  9. 16 Dec, 2021 1 commit
  10. 15 Dec, 2021 1 commit
  11. 13 Dec, 2021 2 commits
  12. 07 Dec, 2021 1 commit
  13. 29 Nov, 2021 1 commit
  14. 25 Nov, 2021 1 commit
  15. 19 Nov, 2021 1 commit
  16. 12 Nov, 2021 2 commits
  17. 04 Nov, 2021 1 commit
  18. 03 Nov, 2021 6 commits
  19. 31 Oct, 2021 1 commit
    • Werner Koch's avatar
      argparse: Add support to read values from the Windows Registry. · b1790f4c
      Werner Koch authored
      
      
      * 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.
      --
      
      The whole thing is actually only for here for doing this
      
      [let tkey HKLM\Foo\Bar\GnuPG:trusted-key-1]
      [if $tkey]
        trusted-key $tkey
      [fi]
      
      But we are hackers and tend to make things more complicated^Wflexible.
      Documentation will be done eventually.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      b1790f4c
  20. 22 Oct, 2021 1 commit
  21. 27 Sep, 2021 1 commit
  22. 10 Sep, 2021 1 commit
  23. 26 Aug, 2021 1 commit
  24. 06 Aug, 2021 3 commits
  25. 05 Aug, 2021 1 commit