aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_portsdiff.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-05 00:26:51 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-05-05 00:26:51 -0700
commitfcb60f72593275a5727c93edc31f0a35d420d069 (patch)
tree4ffb3ccec34ddb347925c2cb874063f274aae61f /toolsrc/src/commands_portsdiff.cpp
parentdc2bdbd4adb27ac81b5e7e91d8275913838bc4a1 (diff)
parente4c5ef656607a1165566b338f5a85f907a627f86 (diff)
downloadvcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.tar.gz
vcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.zip
Merge branch 'master' into KindDragon-snappy
Diffstat (limited to 'toolsrc/src/commands_portsdiff.cpp')
-rw-r--r--toolsrc/src/commands_portsdiff.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/commands_portsdiff.cpp b/toolsrc/src/commands_portsdiff.cpp
index 996d41f92..a614d654e 100644
--- a/toolsrc/src/commands_portsdiff.cpp
+++ b/toolsrc/src/commands_portsdiff.cpp
@@ -114,7 +114,7 @@ namespace vcpkg::Commands::PortsDiff
Checks::check_exit(VCPKG_LINE_INFO,
output.output == VALID_COMMIT_OUTPUT,
"Invalid commit id %s",
- Strings::utf16_to_utf8(git_commit_id));
+ Strings::to_utf8(git_commit_id));
}
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths)
@@ -128,9 +128,9 @@ namespace vcpkg::Commands::PortsDiff
const fs::path& git_exe = paths.get_git_exe();
- const std::wstring git_commit_id_for_previous_snapshot = Strings::utf8_to_utf16(args.command_arguments.at(0));
+ const std::wstring git_commit_id_for_previous_snapshot = Strings::to_utf16(args.command_arguments.at(0));
const std::wstring git_commit_id_for_current_snapshot =
- args.command_arguments.size() < 2 ? L"HEAD" : Strings::utf8_to_utf16(args.command_arguments.at(1));
+ args.command_arguments.size() < 2 ? L"HEAD" : Strings::to_utf16(args.command_arguments.at(1));
check_commit_exists(git_exe, git_commit_id_for_current_snapshot);
check_commit_exists(git_exe, git_commit_id_for_previous_snapshot);