From f4bc3d7ab22b90f725b7e80fbf2cb879b4729ed8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 8 Oct 2019 00:21:21 -0700 Subject: Improve logging for Windows --- alc/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/helpers.cpp') diff --git a/alc/helpers.cpp b/alc/helpers.cpp index 2d532db1..0e2dc067 100644 --- a/alc/helpers.cpp +++ b/alc/helpers.cpp @@ -305,7 +305,7 @@ void al_print(FILE *logfile, const char *fmt, ...) va_end(args); std::wstring wstr{utf8_to_wstr(str)}; - fprintf(logfile, "%ls", wstr.c_str()); + fputws(wstr.c_str(), logfile); fflush(logfile); } -- cgit v1.2.3