-
Notifications
You must be signed in to change notification settings - Fork 2.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
Set the console code page to "UTF-8" #6274
Conversation
… users/desattir/bugFixDNC
@@ -30,6 +30,10 @@ export class dotNetExe { | |||
|
|||
public async execute() { | |||
tl.setResourcePath(path.join(__dirname, "task.json")); | |||
this.setConsoleCodePage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this actually be handled in task-lib?
Tasks/DotNetCoreCLI/dotnetcore.ts
Outdated
@@ -30,6 +30,10 @@ export class dotNetExe { | |||
|
|||
public async execute() { | |||
tl.setResourcePath(path.join(__dirname, "task.json")); | |||
this.setConsoleCodePage(); | |||
if (this.command === "custom") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a merge issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is.
Tasks/DotNetCoreCLI/dotnetcore.ts
Outdated
@@ -58,6 +62,13 @@ export class dotNetExe { | |||
} | |||
} | |||
|
|||
private setConsoleCodePage() { | |||
// set the console code page to "UTF-8" | |||
if (tl.osType() === 'Windows_NT') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, does it need to be done in other tasks where we are invoking exes like az cli, packer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any exception thrown from this should be ignored with a warning
@DS-MS can you work on closing this |
@sachinma sure |
… users/desattir/bugFixDNC
ping @DS-MS |
… users/desattir/bugFixDNC
No description provided.