Windows: UTF-8 opt-in for command-line arguments and console input.
[openssl.git] / apps / win32_init.c
index 259e3f35ba05b1eaf7b26fdd5749743080a66a46..ebe92bcd4055b0a9023063c68ce49694d81a4872 100644 (file)
@@ -145,6 +145,9 @@ void win32_utf8argv(int *argc, char **argv[])
     int wlen, ulen, valid = 1;
     char *arg;
 
+    if (GetEnvironmentVariableW(L"OPENSSL_WIN32_UTF8", NULL, 0) == 0)
+        return;
+
     newargc = 0;
     newargv = NULL;
     if (!validate_argv(newargc))