Artifacts Associated With Ticket 218917
Ticket change [47500c92c3] (rid 99677) by nobody on 2000-10-26 01:07:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2717 Bug Version: 8.2 SubmitDate: '1999-09-10' LastModified: '1999-09-20' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: Solaris7 (Sparc) Machine: Other FixedDate: '1999-09-20' FixedInVersion: 8.3b1 ClosedDate: '2000-10-25' Name: Wolfgang S. Kechel Comments: The character classification functions are likely to be more portable. Using them instead of the macros is not a big performance loss. ReproducibleScript: gcc -pipe -c -g -O -Wall -Wconversion -fPIC -I/export/home/p+r/g40/tcl8.2.0/unix/../generic -I/export/home/p+r/g40/tcl8.2.0/unix -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclCompile.c gcc -pipe -c -g -O -Wall -Wconversion -fPIC -I/export/home/p+r/g40/tcl8.2.0/unix/../generic -I/export/home/p+r/g40/tcl8.2.0/unix -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_SHLIB_EXT=\".so\" /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c: In function `TclDatelex': /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:663: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:666: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:676: warning: subscript has type `char' /export/home/p+r/g40/tcl8.2.0/unix/../generic/tclDate.c:686: warning: subscript has type `char' ObservedBehavior: Warnings denote problems in usage of string handling functions/macros. If the POSIX macros should be used, the index variables should have type int not char DesiredBehavior: It like Tcl to make sure the real functions are used. According to POSIX, this is reached by placing #undef-directives for isalpha and friends after including string.h. I have tried this out and it works fine on many platforms (tested Compaq True Unix, SOlaris, AIX, Irix, Linux, NT, HP/UX) Patch: Add: #undef isalpha #undef isdigit to tclDate.c after inclusion of tclPort.h PatchFiles: tclDate.c These functions were fixed by wrapping the args in UCHAR() for 8.3b1. -- 09/20/1999 hobbs - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Compilation problemms under SOlaris2 with gcc"
- type initialized to: "Bug"
Ticket change [f2ad7310c6] (rid 109595) by welch on 2000-10-26 08:31:16:
- closedate changed to: "2000-10-26T01:31:16"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [c49e0338d3] (rid 111874) by dgp on 2001-04-19 03:21:07:
- closedate changed to: "2001-04-18T20:21:07"
- closer changed to: "dgp"
- subsystem changed to: "06. Time Measurement"