$OpenBSD: patch-php-ext_main_cpp,v 1.6 2015/11/02 11:06:34 robert Exp $
--- php-ext/main.cpp.orig	Wed Aug  5 17:30:47 2015
+++ php-ext/main.cpp	Thu Aug 20 12:36:50 2015
@@ -578,8 +578,11 @@ PHP_MINIT_FUNCTION(mapi) {
 
 	ZEND_INIT_MODULE_GLOBALS(mapi, php_mapi_init_globals, NULL);
 
+#ifndef __OpenBSD__
 	// force this program to use UTF-8, that way, we don't have to use lpszW and do all kinds of conversions from UTF-8 to WCHAR and back
 	forceUTF8Locale(false);
+#endif
+
 	return SUCCESS;
 }
 
