File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ export default class IBMi {
50
50
private runtimeCcsid : number = CCSID_SYSVAL ;
51
51
/** User default CCSID is job default CCSID */
52
52
private userDefaultCCSID : number = 0 ;
53
- /** override allows the API to hardcode a CCSID. Usually good for testing */
54
- private overrideCcsid : number | undefined ;
55
53
56
54
client : node_ssh . NodeSSH ;
57
55
currentHost : string = `` ;
@@ -1293,13 +1291,9 @@ export default class IBMi {
1293
1291
}
1294
1292
}
1295
1293
1296
- setOverrideCcsid ( ccsid : number | undefined ) {
1297
- this . overrideCcsid = ccsid ;
1298
- }
1299
-
1300
1294
getEncoding ( ) {
1301
- const fallback = this . overrideCcsid !== undefined || ( ( this . runtimeCcsid < 1 || this . runtimeCcsid === 65535 ) && this . userDefaultCCSID > 0 ? true : false ) ;
1302
- const ccsid = fallback ? ( this . overrideCcsid || this . userDefaultCCSID ) : this . runtimeCcsid ;
1295
+ const fallback = ( ( this . runtimeCcsid < 1 || this . runtimeCcsid === 65535 ) && this . userDefaultCCSID > 0 ? true : false ) ;
1296
+ const ccsid = fallback ? ( this . userDefaultCCSID ) : this . runtimeCcsid ;
1303
1297
return {
1304
1298
fallback,
1305
1299
ccsid,
@@ -1312,7 +1306,6 @@ export default class IBMi {
1312
1306
origin : this . runtimeCcsidOrigin ,
1313
1307
runtimeCcsid : this . runtimeCcsid ,
1314
1308
userDefaultCCSID : this . userDefaultCCSID ,
1315
- overrideCcsid : this . overrideCcsid ,
1316
1309
} ;
1317
1310
}
1318
1311
}
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ import { getMemberUri } from "../filesystems/qsys/QSysFs";
10
10
11
11
export const EncodingSuite : TestSuite = {
12
12
name : `Encoding tests` ,
13
- after : async ( ) => {
14
- const connection = instance . getConnection ( ) ;
15
- connection ?. setOverrideCcsid ( undefined ) ;
16
- } ,
17
-
18
13
before : async ( ) => {
19
14
const config = instance . getConfig ( ) ! ;
20
15
assert . ok ( config . enableSourceDates , `Source dates must be enabled for this test.` ) ;
@@ -32,8 +27,6 @@ export const EncodingSuite: TestSuite = {
32
27
33
28
const tempLib = config ! . tempLibrary ;
34
29
35
- connection ?. setOverrideCcsid ( 37 ) ;
36
-
37
30
const file = `TEST37` ;
38
31
39
32
await connection ! . runCommand ( { command : `CRTSRCPF FILE(${ tempLib } /${ file } ) RCDLEN(112) CCSID(37)` , noLibList : true } ) ;
You can’t perform that action at this time.
0 commit comments