Werner Koch
90ddd1cf13
common: First take on handling Unicode command line args.
...
* common/w32-misc.c: New.
* common/t-w32-cmdline.c: New.
* common/init.c: Include w32help.h.
(prepare_w32_commandline): New.
(_init_common_subsystems) [W32]: Call prepare_w32_commandline.
* common/Makefile.am (common_sources) [W32]: Add w32-misc.c
(module_tests): Add t-w32-cmdline
(t_w32_cmdline_LDADD): New.
--
The rules for the command line parser are not cleary specified - if at
all. See the comment in t-w32-cmdline.c.
We can't use the mingw version because that would require to change
all argv handling to be wchar_t and that only for Windows. That would
be too ugly. Parsing the command line into argv by us is much easier
and we can do that only if needed - i.e. if globing is required (we
are prepared for this) or a non-ASCII character has been encountered.
This way we keep things stable and only fix the currently not working
Unicode problem.
GnuPG-bug-id: 4398
(cherry picked from commit deb6c94362c0f179de1cac18707aad2f51a21e10)
2021-06-08 09:29:49 +02:00
..
2018-03-23 08:37:14 +01:00
2017-05-11 18:12:37 +02:00
2020-12-21 17:24:34 +01:00
2020-12-04 12:12:20 +01:00
2018-02-14 12:21:44 +01:00
2018-08-28 16:47:38 +02:00
2018-02-14 12:21:44 +01:00
2020-03-27 21:20:13 +01:00
2016-11-05 12:02:19 +01:00
2017-05-10 11:13:12 +09:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2015-10-28 10:20:17 +01:00
2017-04-28 10:06:33 +09:00
2015-04-24 16:42:28 +02:00
2016-11-05 12:02:19 +01:00
2021-06-02 19:11:42 +02:00
2021-01-28 16:01:53 +01:00
2016-11-05 12:02:19 +01:00
2021-03-02 19:11:53 +01:00
2021-03-02 19:11:53 +01:00
2017-02-24 13:48:28 +01:00
2011-02-04 12:57:53 +01:00
2021-05-03 19:05:14 +02:00
2020-10-21 20:49:18 +02:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2011-02-04 12:57:53 +01:00
2016-11-05 12:02:19 +01:00
2014-03-12 18:35:36 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2020-11-03 19:31:12 +01:00
2016-11-05 12:02:19 +01:00
2013-05-07 21:35:48 +02:00
2016-11-05 12:02:19 +01:00
2020-10-21 21:09:38 +02:00
2020-11-04 16:25:57 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2015-11-17 12:50:22 +01:00
2021-06-08 09:29:49 +02:00
2017-04-28 10:06:33 +09:00
2020-10-23 10:02:25 +02:00
2020-02-10 16:37:34 +01:00
2015-12-14 16:21:19 +01:00
2020-02-17 11:38:23 +01:00
2017-02-16 17:21:05 +01:00
2017-03-07 10:42:46 +09:00
2020-05-12 18:51:47 +02:00
2020-05-12 18:51:47 +02:00
2021-06-08 09:29:49 +02:00
2016-11-05 12:02:19 +01:00
2018-07-29 18:39:32 +02:00
2018-07-29 18:39:32 +02:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2018-05-02 19:03:07 +02:00
2018-12-05 08:23:57 +01:00
2018-12-05 08:23:57 +01:00
2020-10-23 11:15:59 +02:00
2016-11-05 12:02:19 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2019-04-16 13:27:44 +09:00
2021-05-20 14:52:08 +02:00
2016-11-05 12:02:19 +01:00
2021-04-29 12:37:04 +02:00
2021-04-29 12:57:00 +02:00
2021-04-29 12:37:04 +02:00
2020-04-15 15:31:56 +02:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2016-11-05 12:02:19 +01:00
2019-02-11 10:59:34 +01:00
2019-02-11 10:59:34 +01:00
2020-08-12 09:28:20 +02:00
2016-11-05 12:02:19 +01:00
2017-02-21 13:11:46 -05:00
2021-05-17 18:26:34 +02:00
2018-03-23 08:37:14 +01:00
2016-11-05 12:02:19 +01:00
2018-10-24 20:30:17 +02:00
2017-04-28 10:06:33 +09:00
2018-09-06 11:46:20 +09:00
2017-05-24 17:01:48 +02:00
2016-11-05 12:02:19 +01:00
2020-11-09 11:53:33 +01:00
2020-08-22 14:22:01 +02:00
2020-08-20 15:53:06 +02:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2021-01-11 14:26:27 +01:00
2021-01-11 14:26:27 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2020-10-21 21:10:27 +02:00
2016-11-05 12:02:19 +01:00
2020-10-21 20:49:18 +02:00
2017-01-12 10:39:19 +01:00
2016-11-05 12:02:19 +01:00
2017-01-02 13:29:18 +01:00
2016-11-05 12:02:19 +01:00
2018-07-29 18:39:32 +02:00
2016-11-05 12:02:19 +01:00
2019-01-29 20:17:29 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2017-04-28 10:06:33 +09:00
2021-04-29 12:31:14 +02:00
2017-05-24 17:07:13 +02:00
2017-07-17 15:53:16 +02:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2017-02-24 13:48:28 +01:00
2016-11-05 12:02:19 +01:00
2017-02-24 13:48:28 +01:00
2021-06-08 09:29:49 +02:00
2017-02-24 13:48:28 +01:00
2016-11-05 12:02:19 +01:00
2021-04-29 12:25:46 +02:00
2021-04-29 10:38:29 +02:00
2017-02-21 13:11:46 -05:00
2017-01-17 10:19:06 +01:00
2017-02-24 13:48:28 +01:00
2019-05-27 11:41:35 +02:00
2016-11-05 12:02:19 +01:00
2020-11-27 17:46:29 +01:00
2017-02-24 13:48:28 +01:00
2021-05-17 18:26:34 +02:00
2016-11-05 12:02:19 +01:00
2021-06-08 09:29:49 +02:00
2017-02-24 13:48:28 +01:00
2021-06-08 09:29:49 +02:00
2021-01-11 18:40:45 +01:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00
2017-02-21 13:11:46 -05:00
2016-11-05 12:02:19 +01:00
2016-11-05 12:02:19 +01:00