-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update applocal.ps1 #4942
Update applocal.ps1 #4942
Conversation
Thanks for the PR! I don't totally understand the problem this fixes, and this doesn't currently work on my machine: D:\src\vcpkg> set-content -path foo.txt -value "" -encoding UTF
Set-Content : Cannot bind parameter 'Encoding'. Cannot convert value "UTF" to type "Microsoft.PowerShell.Commands.FileSystemCmdletProviderEncoding". Error: "The identifier name UTF cannot be processed because it is either too similar or identical to the following enumerator names: UTF8, UTF7, UTF32. Use a more specific identifier name."
At line:1 char:47
+ set-content -path foo.txt -value "" -encoding UTF
+ ~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Content], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.SetContentCommand The created file in this case is blank regardless of the |
sorry, the correct value is UTF8 the problem:
, then build, the output window will show fail like: |
Fix microsoft#2801, prev modify mistake UTF8 to UTF
in win7 chinese path, must utf8 to avoid copy dll fail
sync from master
Hi @shadowxiali There are some concerns regarding this change, see comments on #5301. |
Thanks for this PR! |
Fix #2801 , chinese char path fail