Index: Modules/python.c =================================================================== --- Modules/python.c (revision 66049) +++ Modules/python.c (working copy) @@ -40,7 +40,11 @@ oldloc = setlocale(LC_ALL, NULL); setlocale(LC_ALL, ""); for (i = 0; i < argc; i++) { +#ifdef __OpenBSD__ + size_t argsize = strlen(argv[i]); +#else size_t argsize = mbstowcs(NULL, argv[i], 0); +#endif /* __OpenBSD__ */ if (argsize == (size_t)-1) { fprintf(stderr, "Could not convert argument %d to string", i); return 1;