call `init_console` to prevent UTF8 errors when extracting packages (#2655)

This commit is contained in:
Wolf Vollprecht 2023-07-05 18:41:43 +02:00 committed by GitHub
parent 520872800d
commit 9de2535cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include "mamba/core/context.hpp"
#include "mamba/core/output.hpp"
#include "mamba/core/thread_utils.hpp"
#include "mamba/core/util_os.hpp"
#include "mamba/version.hpp"
#include "package.hpp"
@ -21,6 +22,10 @@ main(int argc, char** argv)
using namespace mamba; // NOLINT(build/namespaces)
Configuration config;
// call init console to setup utf8 extraction
init_console();
CLI::App app{ "Version: " + version() + "\n" };
set_package_command(&app);