Skip to content

Commit 5a82763

Browse files
committed
Fixing loc issue
1 parent 322cecf commit 5a82763

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

Tasks/VsTest/helpers.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,11 @@ export class Helper {
162162

163163
return argument;
164164
}
165-
165+
166+
public static setConsoleCodePage() {
167+
tl.debug("Changing active code page to UTF-8");
168+
const chcp = tl.tool(path.resolve(process.env.windir, "system32", "chcp.com"));
169+
chcp.arg(["65001"]);
170+
chcp.execSync({ silent: true } as tr.IExecSyncOptions);
171+
}
166172
}

Tasks/VsTest/runvstest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ci.publishEvent(taskProps);
1414
try {
1515
tl.setResourcePath(path.join(__dirname, 'task.json'));
1616

17+
utils.Helper.setConsoleCodePage();
1718
const useDtaExecutionEngine = isDtaEngineRequired();
1819
if (useDtaExecutionEngine) {
1920
ci.publishEvent({ runmode: 'distributedtest', parallelism: tl.getVariable('System.ParallelExecutionType'),

Tasks/VsTest/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 2,
1919
"Minor": 1,
20-
"Patch": 8
20+
"Patch": 9
2121
},
2222
"demands": [
2323
"vstest"

Tasks/VsTest/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 2,
1919
"Minor": 1,
20-
"Patch": 8
20+
"Patch": 9
2121
},
2222
"demands": [
2323
"vstest"

0 commit comments

Comments
 (0)