aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-03-04 10:43:46 +0100
committerWerner Koch <wk@gnupg.org>2021-03-04 10:43:46 +0100
commit8e15506d6680bbee85bc01453da28fc90b4cb673 (patch)
treee0dd3a0b8928471005bfee107dd59212b7ebc131
parentdeb6c94362c0f179de1cac18707aad2f51a21e10 (diff)
downloadgnupg-8e15506d6680bbee85bc01453da28fc90b4cb673.tar.gz
gpg: Prepare for globing with UTF-8.
* g10/gpg.c (_dowildcard): Remove. (my_strusage): Enable wildcards using our new system. -- This patch actually removes the current globing using a mingw feature. We are not able to use this because it does not handle Unicode filenames. The plan is to implement this in init.c. This patch merely configures gpg to request globing. GnuPG-bug-id: 4398
-rw-r--r--g10/gpg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index b4b802248..8e19a89f3 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -77,10 +77,6 @@
#define MY_O_BINARY 0
#endif
-#ifdef __MINGW32__
-int _dowildcard = -1;
-#endif
-
enum cmd_and_opt_values
{
aNull = 0,
@@ -1196,6 +1192,10 @@ my_strusage( int level )
p = zips;
break;
+ case 95:
+ p = "1"; /* <-- Enable globbing under Windows (see init.c) */
+ break;
+
default: p = NULL;
}
return p;