From 9fef50ff26e5c9c56e0794947305429f27da17e8 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 25 Mar 2024 22:57:24 +0100 Subject: consistent paths encoding (#24) * Don't encode filesystem path to UTF8 unless stored in compactbinary string * Be consistent where we encode/decode paths to UTF8 --- src/zenutil/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenutil/logging.cpp') diff --git a/src/zenutil/logging.cpp b/src/zenutil/logging.cpp index eef6a59ce..4f8c5e59e 100644 --- a/src/zenutil/logging.cpp +++ b/src/zenutil/logging.cpp @@ -80,7 +80,7 @@ BeginInitializeLogging(const LoggingOptions& LogOptions) zen::CreateDirectories(LogOptions.AbsLogFile.parent_path()); } - FileSink = std::make_shared(zen::PathToUtf8(LogOptions.AbsLogFile), + FileSink = std::make_shared(LogOptions.AbsLogFile, /* max size */ 128 * 1024 * 1024, /* max files */ 16, /* rotate on open */ true); -- cgit v1.2.3