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

Bug#246961: marked as done (Surprising version comparison result)



Your message dated Tue, 4 May 2004 13:52:37 +0100
with message-id <20040504125237.GA5642@suffields.me.uk>
and subject line Bug#246961: Surprising version comparison result
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; 2 May 2004 14:52:51 +0000
>From jdthood@aglu.demon.nl Sun May 02 07:52:50 2004
Return-path: <jdthood@aglu.demon.nl>
Received: from post-20.mail.nl.demon.net [194.159.73.1] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKIKo-0008U9-00; Sun, 02 May 2004 07:52:50 -0700
Received: from [82.161.38.140] (helo=thanatos)
	by post-20.mail.nl.demon.net with esmtp (Exim 3.36 #2)
	id 1BKIKk-0009ho-00; Sun, 02 May 2004 14:52:46 +0000
Received: by thanatos (Postfix, from userid 1001)
	id 6E15810D699; Sun,  2 May 2004 16:52:45 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Thomas Hood <jdthood@yahoo.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Surprising version comparison result
X-Mailer: reportbug 2.56
Date: Sun, 02 May 2004 16:52:45 +0200
Message-Id: <[🔎] 20040502145245.6E15810D699@thanatos>
Delivered-To: submit@bugs.debian.org
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=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: dpkg
Version: 1.10.21
Severity: normal

$ dpkg --compare-versions 1.1 lt 11 && echo yes
yes
$ dpkg --compare-versions 1.a lt 1a && echo yes
$ dpkg --compare-versions 1a lt 1.a && echo yes
yes

Why is version 1a less than 1.a?

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (800, 'testing'), (700, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

Versions of packages dpkg depends on:
ii  dselect                     1.10.20      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-12 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 246961-done) by bugs.debian.org; 4 May 2004 12:52:39 +0000
>From asuffield@suffields.me.uk Tue May 04 05:52:39 2004
Return-path: <asuffield@suffields.me.uk>
Received: from spc1-sout4-4-0-cust241.cosh.broadband.ntl.com (cyclone.suffields.me.uk) [81.103.170.241] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKzPb-0005wA-00; Tue, 04 May 2004 05:52:39 -0700
Received: from asuffield by cyclone.suffields.me.uk with local (Exim 3.36 #1 (Debian))
	id 1BKzPZ-0001VK-00
	for <246961-done@bugs.debian.org>; Tue, 04 May 2004 13:52:37 +0100
Date: Tue, 4 May 2004 13:52:37 +0100
From: Andrew Suffield <asuffield@debian.org>
To: 246961-done@bugs.debian.org
Subject: Re: Bug#246961: Surprising version comparison result
Message-ID: <20040504125237.GA5642@suffields.me.uk>
References: <[🔎] 20040502145245.6E15810D699@thanatos>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0"
Content-Disposition: inline
In-Reply-To: <[🔎] 20040502145245.6E15810D699@thanatos>
X-No-CC: I subscribe to this list; do not CC me on replies.
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Andrew Suffield <asuffield@suffields.me.uk>
Delivered-To: 246961-done@bugs.debian.org
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.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1


--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 02, 2004 at 04:52:45PM +0200, Thomas Hood wrote:
> Package: dpkg
> Version: 1.10.21
> Severity: normal
>=20
> $ dpkg --compare-versions 1.1 lt 11 && echo yes
> yes

1 < 11, stop

> $ dpkg --compare-versions 1.a lt 1a && echo yes

1 =3D=3D 1, continue
chr('.') -> 46=20
!isalpha('.') -> 46 + 256 -> 302
chr('a') -> 97
302 > 97, stop

> Why is version 1a less than 1.a?

Consider yourself de-surprised.

--=20
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

--6TrnltStXW4iwmi0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAl5IVlpK98RSteX8RAskgAJ9rWOIpAUUVDoxn7oo2xFPQ1mVPjQCgiHuk
N4FG+8IPspf9R6HcBHzqjB0=
=hq6/
-----END PGP SIGNATURE-----

--6TrnltStXW4iwmi0--



Reply to: