From 7ba88e1259a55f93d13fd19011a94bfdf72b098c Mon Sep 17 00:00:00 2001 From: Albert Ziegenhagel Date: Thu, 22 Sep 2016 13:17:00 +0200 Subject: [PATCH] Fixed encoding of default triplet name --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 65d3738ec..2ec2c8fba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,7 +73,7 @@ static void inner(const vcpkg_cmd_arguments& args) const auto vcpkg_default_triplet_env = System::wdupenv_str(L"VCPKG_DEFAULT_TRIPLET"); if(!vcpkg_default_triplet_env.empty()) { - default_target_triplet = {std::string(vcpkg_default_triplet_env.begin(), vcpkg_default_triplet_env.end())}; + default_target_triplet = {Strings::utf16_to_utf8(vcpkg_default_triplet_env)}; } else {