From c8b41899368aebc7071b34eb70941710b358d3ce Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Sat, 24 Sep 2022 00:33:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E5=88=B0=E7=89=B9=E5=88=AB=E6=8B=BC?= =?UTF-8?q?=E8=A3=85=E7=9A=84URL=E6=97=B6=EF=BC=88=E6=AF=94=E5=A6=82?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=BC=8F=E6=B4=9E=E6=89=AB=E6=8F=8F=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4web=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=B4=A9=E6=BA=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tp_web/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/tp_web/src/main.cpp b/server/tp_web/src/main.cpp index 2e8a784..8df71c6 100644 --- a/server/tp_web/src/main.cpp +++ b/server/tp_web/src/main.cpp @@ -574,19 +574,19 @@ PyObject* _py_log_output(PyObject* self, PyObject* args) switch (level) { case EX_LOG_LEVEL_DEBUG: - ex_printf_d(tmp.c_str()); + ex_printf_d(L"%ls", tmp.c_str()); break; case EX_LOG_LEVEL_VERBOSE: - ex_printf_v(tmp.c_str()); + ex_printf_v(L"%ls", tmp.c_str()); break; case EX_LOG_LEVEL_INFO: - ex_printf_i(tmp.c_str()); + ex_printf_i(L"%ls", tmp.c_str()); break; case EX_LOG_LEVEL_WARN: - ex_printf_w(tmp.c_str()); + ex_printf_w(L"%ls", tmp.c_str()); break; case EX_LOG_LEVEL_ERROR: - ex_printf_e(tmp.c_str()); + ex_printf_e(L"%ls", tmp.c_str()); break; default: PYLIB_RETURN_FALSE;