diff --git a/src/plugin/plugin.cpp b/src/plugin/plugin.cpp index d8b13be99c..f713a61cee 100644 --- a/src/plugin/plugin.cpp +++ b/src/plugin/plugin.cpp @@ -54,7 +54,11 @@ namespace { } void plugin_debug(const std::string& message) { +#if defined(_MSC_VER) && defined(_UNICODE) + std::wcerr << "[ifcopenshell.plugin] " << message.c_str() << std::endl; +#else std::cerr << "[ifcopenshell.plugin] " << message << std::endl; +#endif } const char* plugin_kind_name(ifcopenshell::plugin::kind kind) {