Xref: utzoo news.software.b:8055 comp.os.vms:39179 news.software.anu-news:2931 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!hobbes.physics.uiowa.edu!maverick.ksu.ksu.edu!deimos.cis.ksu.edu!mccall!tp From: tp@mccall.com Newsgroups: news.software.b,comp.os.vms,news.software.anu-news,vmsnet.admin Subject: Re: Important TESTED patch for dxrn/mxrn (part 2) Message-ID: <1991May30.114333.1008@mccall.com> Date: 30 May 91 17:43:33 GMT References: <1991May24.082757@mccall.com> Organization: The McCall Pattern Co., Manhattan, KS, USA Lines: 45 >In article <1991May24.082757@mccall.com>, tp@mccall.com (Terry Poot) writes: >> Sorry about the last one, this patch produces RFC822 compatible dates as >> best I can tell, and hopefully this will statisfy C news. *Sigh*. I'm sorry, but I did it again. I just haven't had the time to put into this to be careful about it. Anyway, my fix does work, but the patch I posted was the version before the correct version. It won't work at all. (Obviously, not too many people have applied the patch yet, because the person that called my attention to it eyeballed it, and doesn't run dxrn/mxrn himself.) Anyway, here is a very short patch to fix dxrn/mxrn once and for all. Apply this one AFTER my previous patch. I'm not going to post the whole big mess to 4 newsgroups again. The first patch is useless without this one, apply both in sequence to get a working version of dxrn/mxrn that will interoperate with C news. *** LSRC:[DXRN]COMPOSE.C;4 --- compose.c ************** *** 2427,2434 atime = asctime(localtime(&clockTime)); tz = getenv(TIMEZONE_ENV); } ! sprintf(gendate, "%3s, %2s %3s %2s %8s %s", atime, atime+8, atime+22, ! atime+11, tz); return(gendate); } #endif --- 2427,2434 ----- atime = asctime(localtime(&clockTime)); tz = getenv(TIMEZONE_ENV); } ! sprintf(gendate, "%.3s, %.2s %.3s %.2s %.8s %s", atime, atime+8, atime+4, ! atime+22, atime+11, tz); return(gendate); } #endif -- Terry Poot The McCall Pattern Company (uucp: ...!rutgers!ksuvax1!deimos!mccall!tp) 615 McCall Road (800)255-2762, in KS (913)776-4041 Manhattan, KS 66502, USA