From 92a38b2f2f06e4350a7f5da8abffd8112f4e3411 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sat, 29 Jun 2024 03:53:54 +0300 Subject: [PATCH] settings_parser: use multibyte std::string --- dll/settings_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dll/settings_parser.cpp b/dll/settings_parser.cpp index 66d4850a..045e9940 100644 --- a/dll/settings_parser.cpp +++ b/dll/settings_parser.cpp @@ -1146,12 +1146,12 @@ static void parse_crash_printer_location() { std::string line(common_helpers::string_strip(ini.GetValue("main::general", "crash_printer_location", ""))); if (line.size()) { - auto crash_path = utf8_decode(common_helpers::to_absolute(line, get_full_program_path())); + auto crash_path = common_helpers::to_absolute(line, get_full_program_path()); if (crash_path.size()) { if (crash_printer::init(crash_path)) { - PRINT_DEBUG("Unhandled crashes will be saved to '%s'", utf8_encode(crash_path).c_str()); + PRINT_DEBUG("Unhandled crashes will be saved to '%s'", crash_path.c_str()); } else { - PRINT_DEBUG("Failed to setup unhandled crash printer with path: '%s'", utf8_encode(crash_path).c_str()); + PRINT_DEBUG("Failed to setup unhandled crash printer with path: '%s'", crash_path.c_str()); } } }