Skip to content
Tcl Source Code History Of Ticket 413706ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 413706ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 413706ffffffffffffffffffffffffffffffffff

  1. Ticket change [42ffee019e] (rid 116473) by smatzek on 2001-04-04 14:04:16:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This patch contains two fixes.  The first fix is an 
      added method execOS400.  This method is called to 
      execute commands in the POSIX shell.  It was necessary 
      to have a separate execOS400 from the execUnix because 
      the 'cd' to the working directory had to be quoted 
      differently to avoid an error message when the user 
      does not have a home directory.  What was happening 
      was the cd and the directory path were being 
      interpreted as two commands.  The cd command would try 
      to change directories to the user home, and if it 
      didn't exist, the TCL user would get an error message 
      to this effect every time a command is exec'ed.
      
      
      The second fix is in the cmdProc method.  OS/400 runs 
      in EBCDIC vs ASCII character encodings.  Thus, any 
      call to an POSIX command such as ls will return it's 
      results in an EBCDIC code page.  When the result is 
      returned to Java under the original implementation, it 
      was interpreted incorrectly and resulted in 
      unprintable characters.  The fix in the attached file 
      checks for the existence of a Java property 
      tcl.lang.childEncoding, that the user of TCL can set 
      to the name of their code page, for instance "Cp037" 
      is the English EBCDIC code page.  If this property 
      exists, the stderr and stdout of the process returned 
      by Runtime.exec are converted from the given code 
      page.  If the property doesn't exist, it will use the 
      original implementation (no conversion).
      
      This fix has been tested on OS/400 v4r4, v4r5, and and 
      early version of v5r1.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "smatzek"
    9. subsystem initialized to: "52. Portability Support"
    10. title initialized to: "OS/400 patch 3 of 3"
    11. type initialized to: "Patch"
  2. Add attachment "ExecCmd.java" [10704b7e39] (rid 94971) by smatzek on 2001-04-04 21:04:17.

  3. Ticket change [03060b8618] (rid 119749) by smatzek on 2001-04-04 21:04:18:

    1. icomment:
      
      
      File Added - 4948: ExecCmd.java
      
      
      
    2. login: "smatzek"
    3. mimetype: "text/plain"
    4. username: "smatzek"
  4. Ticket change [6056a42483] (rid 115977) by dgp on 2001-04-04 22:19:38:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2001-04-04T15:19:38"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      The attached patch is for Jacl, not Tcl.  It should
      be contributed to the tcljava project, not here.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. subsystem changed to: "None"
    10. username: "dgp"