mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
Fix vcpkg integrate install
for unicode usernames
This commit is contained in:
parent
7c07ff813b
commit
786d53c002
@ -15,6 +15,7 @@ namespace fs
|
||||
using stdfs::copy_options;
|
||||
using stdfs::file_status;
|
||||
using stdfs::path;
|
||||
using stdfs::u8path;
|
||||
|
||||
inline bool is_regular_file(file_status s) { return stdfs::is_regular_file(s); }
|
||||
inline bool is_directory(file_status s) { return stdfs::is_directory(s); }
|
||||
|
@ -139,7 +139,7 @@ namespace vcpkg::Commands::Integrate
|
||||
static fs::path get_appdata_targets_path()
|
||||
{
|
||||
static const fs::path LOCAL_APP_DATA =
|
||||
fs::path(System::get_environment_variable("LOCALAPPDATA").value_or_exit(VCPKG_LINE_INFO));
|
||||
fs::u8path(System::get_environment_variable("LOCALAPPDATA").value_or_exit(VCPKG_LINE_INFO));
|
||||
return LOCAL_APP_DATA / "vcpkg" / "vcpkg.user.targets";
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user