On most systems, even if __STDC_ISO_10646__ is not declared, wchar_t will be correct in a UTF-8 locale. The client and server both enforce a locale check on startup.