diff options
author | Andy Polyakov <appro@openssl.org> | 2016-07-16 23:21:39 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-08-01 09:52:06 +0200 |
commit | 4e155ec47e73ed95e15b9e875b3c7fdfcbf13496 (patch) | |
tree | 6bb90438ff29475903db0c9df1c1ef7c714b1993 /apps/apps.h | |
parent | e72769aa41c3f49e0f39f44de222fc5ac339e3e0 (diff) |
apps/openssl.c: UTF-y Windows argv.
Windows never composes UTF-8 strings as result of user interaction
such as passing command-line argument. The only way to compose one
is programmatic conversion from WCHAR string, which in turn can be
picked up on command line.
[For reference, why not wmain, it's not an option on MinGW.]
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h index 5faf440200..22eead3a18 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -367,6 +367,11 @@ typedef struct args_st { * can be re-used. */ char **copy_argv(int *argc, char *argv[]); +/* + * Win32-specific argv initialization that splits OS-supplied UNICODE + * command line string to array of UTF8-encoded strings. + */ +void win32_utf8argv(int *argc, char **argv[]); # define PW_MIN_LENGTH 4 |