$OpenBSD: patch-php-ext_main_cpp,v 1.4 2012/10/28 21:51:08 robert Exp $
--- php-ext/main.cpp.orig	Sun Oct 28 21:14:05 2012
+++ php-ext/main.cpp	Sun Oct 28 21:14:22 2012
@@ -568,8 +568,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;
 }
 
