Skip to content

Commit

Permalink
Initial commit for copy paste
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIrv committed Mar 9, 2018
1 parent dd5c9ca commit dc84a28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/controllers/queryRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,15 @@ export default class QueryRunner {
p = p.then(tasks[i]);
}
p.then(() => {
let oldLang: string;
if (process.platform === 'darwin') {
oldLang = process.env['LANG'];
process.env['LANG'] = 'en_US.UTF-8';
}
ncp.copy(copyString, () => {
if (process.platform === 'darwin') {
process.env['LANG'] = oldLang;
}
resolve();
});
});
Expand Down
5 changes: 3 additions & 2 deletions test/queryRunner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ suite('Query Runner tests', () => {
'3' + TAB + '4' + CLRF +
'5' + TAB + '6' + CLRF +
'7' + TAB + '8' + CLRF +
'9' + TAB + '10';
'9' + TAB + '10';

const finalStringWithHeader = 'Col1' + TAB + 'Col2' + CLRF + finalStringNoHeader;

Expand All @@ -517,10 +517,11 @@ suite('Query Runner tests', () => {
[{isNull: false, displayValue: '3'}, {isNull: false, displayValue: '4'}],
[{isNull: false, displayValue: '5'}, {isNull: false, displayValue: '6'}],
[{isNull: false, displayValue: '7'}, {isNull: false, displayValue: '8'}],
[{isNull: false, displayValue: '9'}, {isNull: false, displayValue: '10'}]
[{isNull: false, displayValue: '9'}, {isNull: false, displayValue: '10'}]
]
}
};
process.env['LANG'] = 'C';

let testRange: ISlickRange[] = [{fromCell: 0, fromRow: 0, toCell: 1, toRow: 4}];

Expand Down

0 comments on commit dc84a28

Please sign in to comment.