From owner-cvs-all@FreeBSD.ORG Tue Feb 19 06:02:02 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6635A16A419; Tue, 19 Feb 2008 06:02:02 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5109313C457; Tue, 19 Feb 2008 06:02:02 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1J622F3079230; Tue, 19 Feb 2008 06:02:02 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1J622Fe079227; Tue, 19 Feb 2008 06:02:02 GMT (envelope-from kientzle) Message-Id: <200802190602.m1J622Fe079227@repoman.freebsd.org> From: Tim Kientzle Date: Tue, 19 Feb 2008 06:02:02 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_read_support_format_iso9660.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 06:02:02 -0000 kientzle 2008-02-19 06:02:02 UTC FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_iso9660.c Log: Someday I might forgive the standards bodies for omitting timegm(). Maybe. In the meantime, my workarounds for trying to coax UTC without timegm() are getting uglier and uglier. Apparently, some systems don't support setenv()/unsetenv(), so you can't set the TZ env var and hope thereby to coax mktime() into generating UTC. Without that, I don't see a really good alternative to just giving up and converting to localtime with mktime(). (I suppose I should research the Perl library approach for computing an inverse function to gmtime(); that might actually be simpler than this growing list of hacks.) Revision Changes Path 1.25 +9 -5 src/lib/libarchive/archive_read_support_format_iso9660.c