Skip to content

Commit 17e2200

Browse files
authored
Merge pull request #1727 from evoskuil/master
Fix regression in --config parse.
2 parents 3fcdf55 + 0bab51c commit 17e2200

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/config/parser.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ std::filesystem::path parser::get_config_option(variables_map& variables,
5252
if (config.empty())
5353
return {};
5454

55-
// Capture as utf8 so std::filesystem::path does assume ansi code page.
56-
return { config.as<std::u8string>() };
55+
// TODO: if we create config::path for utf8 path decoding this changes too.
56+
////return { config.as<std::u8string>() };
57+
return { config.as<std::filesystem::path>() };
5758
}
5859

5960
bool parser::get_option(variables_map& variables,

0 commit comments

Comments
 (0)