Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a10828d381786b322037e513833ce86fd2c8948
Ticket: 466016ffffffffffffffffffffffffffffffffff
OS/390 support for Tcl-8.3.3
User & Date: lthuresson on 2001-09-28 11:48:22
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    The port was done on OS/390 V2R9 using IBM c89 C/C++ compiler.
    The hole source is compiled with c89 compiler options
    -Wc,conv(iso8859-1) (=use iso8859-1 for character and string literals)
    and -D__LIBASCII (=use ASCII version of C-library functions, but not all
    library functions have ASCII versions, see compat/os390Libascii.c)
    to be able to take advantage of the use of utf-8 encoding in Tcl internals.
    The default system-encoding is set to ibm-1047 (normally iso8859-1)
    and thus conversion to EBCDIC is done automatically when data is 
    transferred to/from the external environment.
    I had to add built in support for ibm-1047 and iso8859-1 see comment in
    generic/encoding.c. The c library uses iso8859-1 encoding but system
    encoding is set to ibm-1047 this breakes many argument conversions
    for c-lib calls. These conversions previously used a NULL encoding token
    to get the system encoding. I replaced this with a macro that on 
    OS390 returns a iso8859-1 encoding token and a NULL token on all
    other platforms. 
    
    The configure script generated by autoconf contains a line
    
     DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
    
    The ASCII linefeed code \012 must be hand edited to corresponding
    EBCDIC code \025. What I understand from discussions in various
    news groups, changing to \n is not portable to all implementations
    of tr.
    
    The present configure script only support static linking. I did
    some experiments with dynamic linking, but very few functions 
    worked in that version.
    
    The http package have been modified to explicitly set iso8859-1 encoding
    for the connection. This takes care of the necessary ASCII<->EBCDIC 
    conversion in most cases.
    However if the -channel option is used for ::http::geturl, data is copied
    with the fcopy command and no encoding conversion is done. If EBCDIC
    encoded data is wanted it must be converted by the application.
    The http test have been modified to handle this.
    The http test crash occasionally when the my os390 machine is under heavy load !
    Many io-tests assume ASCII encoding. I have modified a few 
    tests to work in both ASCII and EBCDIC environment, but quite a few remains
    to be fixed.
    
     
    /Leif
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "lthuresson"
  9. subsystem changed to: "52. Portability Support"
  10. title changed to: "OS/390 support for Tcl-8.3.3"
  11. type changed to: "Patch"