Skip to content
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

Merged
merged 7 commits into from
Mar 20, 2018
Merged

Conversation

thesattiraju
Copy link
Contributor

No description provided.

@thesattiraju thesattiraju requested a review from sachinma January 23, 2018 14:53
@@ -30,6 +30,10 @@ export class dotNetExe {

public async execute() {
tl.setResourcePath(path.join(__dirname, "task.json"));
this.setConsoleCodePage();
Copy link
Contributor

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?

@@ -30,6 +30,10 @@ export class dotNetExe {

public async execute() {
tl.setResourcePath(path.join(__dirname, "task.json"));
this.setConsoleCodePage();
if (this.command === "custom") {
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is.

@@ -58,6 +62,13 @@ export class dotNetExe {
}
}

private setConsoleCodePage() {
// set the console code page to "UTF-8"
if (tl.osType() === 'Windows_NT') {
Copy link
Member

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

Copy link

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

@sachinma
Copy link
Member

@DS-MS can you work on closing this

@thesattiraju
Copy link
Contributor Author

@sachinma sure

@sachinma
Copy link
Member

ping @DS-MS

@thesattiraju thesattiraju merged commit 185f958 into master Mar 20, 2018
@thesattiraju thesattiraju deleted the users/desattir/bugFixDNC branch February 12, 2019 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants