Skip to content
Tcl Source Code Artifact [42ffee019e]
Login

Artifact [42ffee019e]

Artifact 42ffee019e0ddb5af24cdafff133df56b0fba5ea:

Ticket change [42ffee019e] - New ticket [413706ffffffffff|413706ffff] <i>OS/400 patch 3 of 3</i>. by smatzek on 2001-04-04 14:04:16.
D 2001-04-04T14:04:16
J assignee nobody
J cmimetype text/plain
J comment This\spatch\scontains\stwo\sfixes.\s\sThe\sfirst\sfix\sis\san\s\nadded\smethod\sexecOS400.\s\sThis\smethod\sis\scalled\sto\s\nexecute\scommands\sin\sthe\sPOSIX\sshell.\s\sIt\swas\snecessary\s\nto\shave\sa\sseparate\sexecOS400\sfrom\sthe\sexecUnix\sbecause\s\nthe\s'cd'\sto\sthe\sworking\sdirectory\shad\sto\sbe\squoted\s\ndifferently\sto\savoid\san\serror\smessage\swhen\sthe\suser\s\ndoes\snot\shave\sa\shome\sdirectory.\s\sWhat\swas\shappening\s\nwas\sthe\scd\sand\sthe\sdirectory\spath\swere\sbeing\s\ninterpreted\sas\stwo\scommands.\s\sThe\scd\scommand\swould\stry\s\nto\schange\sdirectories\sto\sthe\suser\shome,\sand\sif\sit\s\ndidn't\sexist,\sthe\sTCL\suser\swould\sget\san\serror\smessage\s\nto\sthis\seffect\severy\stime\sa\scommand\sis\sexec'ed.\n\n\nThe\ssecond\sfix\sis\sin\sthe\scmdProc\smethod.\s\sOS/400\sruns\s\nin\sEBCDIC\svs\sASCII\scharacter\sencodings.\s\sThus,\sany\s\ncall\sto\san\sPOSIX\scommand\ssuch\sas\sls\swill\sreturn\sit's\s\nresults\sin\san\sEBCDIC\scode\spage.\s\sWhen\sthe\sresult\sis\s\nreturned\sto\sJava\sunder\sthe\soriginal\simplementation,\sit\s\nwas\sinterpreted\sincorrectly\sand\sresulted\sin\s\nunprintable\scharacters.\s\sThe\sfix\sin\sthe\sattached\sfile\s\nchecks\sfor\sthe\sexistence\sof\sa\sJava\sproperty\s\ntcl.lang.childEncoding,\sthat\sthe\suser\sof\sTCL\scan\sset\s\nto\sthe\sname\sof\stheir\scode\spage,\sfor\sinstance\s"Cp037"\s\nis\sthe\sEnglish\sEBCDIC\scode\spage.\s\sIf\sthis\sproperty\s\nexists,\sthe\sstderr\sand\sstdout\sof\sthe\sprocess\sreturned\s\nby\sRuntime.exec\sare\sconverted\sfrom\sthe\sgiven\scode\s\npage.\s\sIf\sthe\sproperty\sdoesn't\sexist,\sit\swill\suse\sthe\s\noriginal\simplementation\s(no\sconversion).\n\nThis\sfix\shas\sbeen\stested\son\sOS/400\sv4r4,\sv4r5,\sand\sand\s\nearly\sversion\sof\sv5r1.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter smatzek
J subsystem 52.\sPortability\sSupport
J title OS/400\spatch\s3\sof\s3
J type Patch
K 413706ffffffffffffffffffffffffffffffffff
U smatzek
Z b0a411c0e223f884265d8149cfd2f1fa