nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: David Levine
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 0c926c599d9def7f70e674b7628a4bafd8cd6698
Date: Wed, 08 Feb 2012 03:24:12 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  0c926c599d9def7f70e674b7628a4bafd8cd6698 (commit)
       via  8c57ff8161a9dc270c602a803aa47d7a949a6aaa (commit)
      from  45cb44751de56643d77d2d25e0907f14d8009136 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=0c926c599d9def7f70e674b7628a4bafd8cd6698


commit 0c926c599d9def7f70e674b7628a4bafd8cd6698
Author: David Levine <address@hidden>
Date:   Tue Feb 7 21:23:37 2012 -0600

    Removed use of tzset()/tzname in dtimezone().  They caused the returned 
timezone string to be for the user's current timezone, but the function is 
supposed to return the string representation of the timezone of its argument.  
That will be numeric, e.g., +0100, now because we no longer have timezone name 
support.

diff --git a/sbr/dtime.c b/sbr/dtime.c
index a7c1574..6acfaeb 100644
--- a/sbr/dtime.c
+++ b/sbr/dtime.c
@@ -280,7 +280,10 @@ dasctime (struct tws *tw, int flags)
 
 
 /*
- * Get the timezone for given offset
+ * Get the timezone for given offset.
+ * This used to return a three-letter abbreviation for some offset
+ * values.  But not many.  Until there's a good way to do that,
+ * return the string representation of the numeric offset.
  */
 
 char *
@@ -297,11 +300,6 @@ dtimezone (int offset, int flags)
        hours = offset / 60;
     }
 
-    if (!(flags & TW_ZONE) && mins == 0) {
-       tzset();
-       return ((flags & TW_DST) ? tzname[1] : tzname[0]);
-    }
-
 #ifdef ADJUST_NUMERIC_ONLY_TZ_OFFSETS_WRT_DST
     if (flags & TW_DST)
        hours += 1;
diff --git a/test/tests/mhshow/test-cte-binary 
b/test/tests/mhshow/test-cte-binary
index 359d42e..26b0f08 100644
--- a/test/tests/mhshow/test-cte-binary
+++ b/test/tests/mhshow/test-cte-binary
@@ -27,7 +27,7 @@ EOF
 
 # check it
 cat > $expected <<EOF
-Date:    Tue, 05 Mar 2002 18:20:35 GMT
+Date:    Tue, 05 Mar 2002 18:20:35 +0000
 To:      address@hidden
 From:    address@hidden
 Subject: test

http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=8c57ff8161a9dc270c602a803aa47d7a949a6aaa


commit 8c57ff8161a9dc270c602a803aa47d7a949a6aaa
Author: David Levine <address@hidden>
Date:   Tue Feb 7 21:17:00 2012 -0600

    Reverted TZ hack to tests, 9ea2daf5e74e3ff03043cfa6fb68033aea0da52a.  A 
code fix is on its way

diff --git a/test/runtest b/test/runtest
index 17ea5e6..5cfc158 100755
--- a/test/runtest
+++ b/test/runtest
@@ -12,13 +12,6 @@ export MH=$MH_TEST_DIR/Mail/.mh_profile
 export PATH=$MH_TEST_DIR/bin:$PATH
 export MH_TEST_COMMON=$PWD/common.sh
 
-#### Some tests use mhshow to display headers.  It relies on mhl's
-#### default mhl.headers, which runs the date through the pretty
-#### function.  That displays the date with the user's current
-#### timezone.  All of the tests expect GMT, so fool them into using
-#### that.
-export TZ=GMT
-
 [ -d $MH_TEST_DIR ] || ./setup-test
 
 # clean old test data
diff --git a/test/tests/bad-input/test-header b/test/tests/bad-input/test-header
index c61e021..b9e76a1 100644
--- a/test/tests/bad-input/test-header
+++ b/test/tests/bad-input/test-header
@@ -21,7 +21,7 @@ actual=$MH_TEST_DIR/$$.actual
 msgfile=$(mhpath new)
 msgnum=$(basename $msgfile)
 cat > $msgfile <<EOF
-Date: Sun, 18 Dec 2005 00:52:39 +0000
+Date: Sun, 18 Dec 2005 00:52:39 +0100
 From: address@hidden
 To: address@hidden
 Subject: test
@@ -41,7 +41,7 @@ check
 cat > $expected <<EOF
 (Message inbox:11)
 
-Date:    Sun, 18 Dec 2005 00:52:39 GMT
+Date:    Sun, 18 Dec 2005 00:52:39 +0100
 To:      address@hidden
 From:    address@hidden
 Subject: test
@@ -57,7 +57,7 @@ check
 
 # check mhshow
 cat > $expected <<EOF
-Date:    Sun, 18 Dec 2005 00:52:39 GMT
+Date:    Sun, 18 Dec 2005 00:52:39 +0100
 To:      address@hidden
 From:    address@hidden
 Subject: test
diff --git a/test/tests/mhshow/test-qp b/test/tests/mhshow/test-qp
index b674b76..ae6ec05 100644
--- a/test/tests/mhshow/test-qp
+++ b/test/tests/mhshow/test-qp
@@ -19,7 +19,7 @@ To: address@hidden
 Subject: test
 MIME-Version: 1.0
 Content-Transfer-Encoding: quoted-printable
-Date: Sun, 18 Dec 2005 00:52:39 +0000
+Date: Sun, 18 Dec 2005 00:52:39 +0100
 
 =3D
 =3d
@@ -38,7 +38,7 @@ EOF
 
 # check it
 cat > $expected <<EOF
-Date:    Sun, 18 Dec 2005 00:52:39 GMT
+Date:    Sun, 18 Dec 2005 00:52:39 +0100
 To:      address@hidden
 From:    address@hidden
 Subject: test

-----------------------------------------------------------------------

Summary of changes:
 sbr/dtime.c                       |   10 ++++------
 test/runtest                      |    7 -------
 test/tests/bad-input/test-header  |    6 +++---
 test/tests/mhshow/test-cte-binary |    2 +-
 test/tests/mhshow/test-qp         |    4 ++--
 5 files changed, 10 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]