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
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- 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
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "lthuresson"
- subsystem changed to: "52. Portability Support"
- title changed to: "OS/390 support for Tcl-8.3.3"
- type changed to: "Patch"