Debian Bug report logs - #12232
FIXED in NMU [was: dpkg-deb i18n bug]

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Enrique Zanardi <ezanardi@noah.dfis.ull.es>

Date: Fri, 22 Aug 1997 17:48:02 UTC

Severity: fixed

Done: Anthony Towns <ajt@master.debian.org>

Bug is archived. No further changes may be made.

Forwarded to ian@davenant.greenend.org.uk

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#12232; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Enrique Zanardi <ezanardi@noah.dfis.ull.es>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #5 received at maintonly@bugs.debian.org (full text, mbox, reply):

From: Enrique Zanardi <ezanardi@noah.dfis.ull.es>
To: maintonly@bugs.debian.org
Subject: dpkg-deb i18n bug
Date: Fri, 22 Aug 1997 18:41:07 +0100 (WEST)
Package: dpkg
Version: 1.4.0.19

If locale is set to spanish, french, german or any other locale which
doesn't use a "." as the decimal separator, dpkg-deb doesn't recognize
the old format debian archives.

.../stable/binary-i386/x11$ file xkeycaps_2.29-3.deb 
xkeycaps_2.29-3.deb: old Debian binary package (format 0.939000)

.../stable/binary-i386/x11$ env | grep LC_ALL
LC_ALL=es_ES

.../stable/binary-i386/x11$ dpkg-deb -f xkeycaps_2.29-3.deb 
dpkg-deb: `xkeycaps_2.29-3.deb' is not a debian format archive

.../stable/binary-i386/x11$ export LC_ALL=C

.../stable/binary-i386/x11$ dpkg-deb -f xkeycaps_2.29-3.deb
PACKAGE: xkeycaps
VERSION: 2.29-3
[...]

The cause is that at some point sscanf is used to extract a float
from the string "0.939000\n", and sscanf uses the current locale definition 
of "decimal_point", (for german, french, spanish, and many others it is a 
comma), so it will extract "0" instead of "0.939"

As there are other "scanf"s in the source, there may be other 
related bugs.

The suggested patch is:

   ..........................

*** dpkg-1.4.0.19/dpkg-deb/main.c.orig Fri Aug 22 18:11:40 1997
--- dpkg-1.4.0.19/dpkg-deb/main.c      Fri Aug 22 18:12:03 1997
***************
*** 137,142 ****
--- 137,143 ----
    jmp_buf ejbuf;
  
    setlocale(LC_ALL, "");
+   setlocale(LC_NUMERIC, "POSIX");
    bindtextdomain(PACKAGE, LOCALEDIR);
    textdomain(PACKAGE);

   ..........................

	Thanks,
-- 
Enrique Zanardi					ezanardi@noah.dfis.ull.es
Dpto. Fisica Fundamental y Experimental
Univ. de La Laguna




Changed bug title. Request was from James Troup <james@nocrew.org> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `fixed'. Request was from jdassen@wi.leidenuniv.nl to control@bugs.debian.org. (full text, mbox, link).


Severity set to `fixed'. Request was from Joel Klecker <jk@espy.org> to control@bugs.debian.org. (full text, mbox, link).


Noted your statement that bug has been forwarded to ian@davenant.greenend.org.uk. Request was from Ian Jackson <ian@davenant.greenend.org.uk> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg-iwj'. Request was from Wichert Akkerman <wichert@soil.nl> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, ack sent to submitter - they'd better know why ! Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 26 09:37:37 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.