Skip to content

Commit

Permalink
Flip log codepage on zos
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Nov 8, 2022
1 parent f308fda commit a0d6b86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/libs/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import * as os from 'os';
import * as xplatform from 'xplatform';

import * as fs from './fs';
//import * as stringlib from './string';
import * as shell from './shell';
import * as stringlib from './string';
//import * as shell from './shell';
import * as strftime from './strftime';
import * as bufferlib from './buffer';
declare namespace console {
Expand Down Expand Up @@ -154,8 +154,7 @@ function writeLog(message: string): boolean {
if (logFile===undefined || logFile===null) {
return false;
} else {
//TODO this does utf8. should we flip it to 1047 on zos?
logFile.puts(message);
logFile.puts(os.platform == 'zos' ? stringlib.asciiToEbcdic(message) : message);
return true;
}
}
Expand Down

0 comments on commit a0d6b86

Please sign in to comment.