From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,a5b0ef6fcc1f5b82,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,a5b0ef6fcc1f5b82,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,a5b0ef6fcc1f5b82,start X-Google-Attributes: gid1164f8,public From: kelsey@vesta01.SLAC.Stanford.EDU (Mike Kelsey) Subject: Bug? in Alpha/OSF1 -- strptime() case sensitive Date: 1997/09/16 Message-ID: <5vmjft$5pr$1@nntp.Stanford.EDU>#1/1 X-Deja-AN: 273031562 Followup-To: poster Distribution: world Organization: University of British Columbia Newsgroups: comp.sys.dec,comp.unix.osf.osf1,comp.unix.questions [Followup-To: poster. I will summarize a solution if I get one.] I have encountered a discrepancy between the man page for strptime(3) and the function's actual operation. The man page says that the function is not case sensitive when matching input items such as month or weekday names. In fact it is, as the following code demonstrates: #include #include #include #include main() { char inDT[50], outDT[50]; /* Date-time stamp buffers */ struct tm tmbuf; /* Buffer for time value found */ time_t intime; /* Date-time stamp from mktime() */ int i, qcap; intime = time(NULL); strftime(inDT,sizeof inDT,"%d-%b-%Y:%H:%M:%S",localtime(&intime)); for (i=0; i