X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fopenssl.c;h=0f7176fd723e27e359063eee197f61b77d7ec81d;hb=ac4e257747075958d37665f327bdf685dd2478ab;hp=978790e04b8da95027cdf01a1d355fb0be041ab3;hpb=846e33c729311169d9c988ceba29484b3783f244;p=openssl.git diff --git a/apps/openssl.c b/apps/openssl.c index 978790e04b..0f7176fd72 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -132,6 +131,11 @@ int main(int argc, char *argv[]) #if defined(OPENSSL_SYS_VMS) && defined(__DECC) copied_argv = argv = copy_argv(&argc, argv); +#elif defined(_WIN32) + /* + * Replace argv[] with UTF-8 encoded strings. + */ + win32_utf8argv(&argc, &argv); #endif p = getenv("OPENSSL_DEBUG_MEMORY"); @@ -204,7 +208,7 @@ int main(int argc, char *argv[]) extern void add_history(const char *cp); char *text; - char *text = readline(prompt); + text = readline(prompt); if (text == NULL) goto end; i = strlen(text); @@ -525,7 +529,7 @@ static int function_cmp(const FUNCTION * a, const FUNCTION * b) static unsigned long function_hash(const FUNCTION * a) { - return lh_strhash(a->name); + return OPENSSL_LH_strhash(a->name); } static int SortFnByName(const void *_f1, const void *_f2)