Your message dated Wed, 16 Feb 2005 21:00:53 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Closing some bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Nov 2004 22:53:58 +0000
>From [EMAIL PROTECTED] Fri Nov 05 14:53:58 2004
Return-path: <[EMAIL PROTECTED]>
Received: from sneakemail.com (monkey.sneakemail.com) [38.113.6.61] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1CQCxy-0004EZ-00; Fri, 05 Nov 2004 14:53:58 -0800
Received: (qmail 11835 invoked by uid 501); 5 Nov 2004 22:53:55 -0000
Date: 5 Nov 2004 22:53:55 -0000
To: [EMAIL PROTECTED]
Subject: libxslt1.1: date:day-of-week-in-month() bugginess
Encoding: 8bit
From: "Sal Paradise" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
        FROM_HAS_MIXED_NUMS,HAS_PACKAGE autolearn=no 
        version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: libxslt1.1
Version: 1.1.8-5
Severity: normal
Tags: patch

The EXSLT function date:day-of-week-in-month() produces bad values on some
inputs described here.  Apply the following stylesheet to any XML document
(the XML input is ignored) using xsltproc to reproduce.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:date="http://exslt.org/dates-and-times"; version="1.0">

  <xsl:output method="text"/>

<xsl:variable name="nl">
<xsl:text>
</xsl:text>
</xsl:variable>

  <xsl:template match="/">
    <xsl:variable name="mydate" select="'2000-10-07T08:26:10Z'"/>
    <xsl:value-of select="date:day-of-week-in-month($mydate)"/>
    <xsl:value-of select="$nl"/>
  </xsl:template>

</xsl:stylesheet>

The buggy output from libxslt1.1 is:
2

The correct output should be:
1

For an explanation of why, read the spec of this function carefully at:
http://www.exslt.org/date/functions/day-of-week-in-month/index.html

Here is a patch that fixes the problem:
--- libxslt-1.1.8/libexslt/date.c       2004-05-16 23:25:26.000000000 -0400
+++ libxslt-1.1.8-fixed/libexslt/date.c 2004-11-05 17:39:09.000000000 -0500
@@ -2283,7 +2283,7 @@
        }
     }

-    ret = (dt->value.date.day / 7) + 1;
+    ret = ((dt->value.date.day - 1) / 7) + 1;

     exsltDateFreeDate(dt);


Note that this bug still exists in the latest upstream version (1.1.12) too,
so the patch should be forwarded upstream.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libxslt1.1 depends on:
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an
ii  libgcrypt11                 1.2.0-10     LGPL Crypto library - runtime libr
ii  libgpg-error0               1.0-1        library for common error values an
ii  libxml2                     2.6.11-5     GNOME XML library
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- no debconf information


---------------------------------------
Received: (at 279924-done) by bugs.debian.org; 16 Feb 2005 20:01:26 +0000
>From [EMAIL PROTECTED] Wed Feb 16 12:01:25 2005
Return-path: <[EMAIL PROTECTED]>
Received: from aputeaux-152-1-36-88.w82-120.abo.wanadoo.fr 
(localhost.localdomain) [82.120.210.88] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D1VMT-0002Yo-00; Wed, 16 Feb 2005 12:01:25 -0800
Received: from mh by localhost.localdomain with local (Exim 4.44)
        id 1D1VLx-0000uE-AI; Wed, 16 Feb 2005 21:00:53 +0100
Date: Wed, 16 Feb 2005 21:00:53 +0100
From: Mike Hommey <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED]
Subject: Closing some bugs
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-GPG-Fingerprint: A479 A824 265C B2A5 FC54  8D1E DE4B DA2C 54FD 2A58
Organization: glandium.org
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.5 required=4.0 tests=BAYES_00,SUSPICIOUS_RECIPS 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

Since version 1.1.12-5 did migrate to sarge, these bugs which were only
in previous 1.1.8 version in sarge, but not in 1.1.12-5 in sid are thus
closed.

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to