From 8d0a6ecc16d2fa66d9c9037fccfec652604638e2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 8 May 2026 13:39:36 +0200 Subject: [PATCH] Respect unicode setting for plugin debug info --- src/plugin/plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) {