[DPKG] Fails to install package with UTF-8 filenames on any UTF-8 locale

Bug #28163 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
dpkg (Debian)
Fix Released
Unknown
dpkg (Ubuntu)
Invalid
High
Scott James Remnant (Canonical)

Bug Description

Automatically imported from Debian bug report #346436 http://bugs.debian.org/346436

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (15.2 KiB)

Message-ID: <email address hidden>
Date: Sun, 08 Jan 2006 01:27:14 +0200
From: Konstantinos Margaritis <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: [DPKG] Fails to install package with UTF-8 filenames on any UTF-8 locale

--===============0858751245==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: dpkg
Version: 1.13.11.0.1
Severity: serious

I created a package to be used in Greek Debian-Edu/Skolelinux
installations, which includes many Greek (UTF-8) filenames, but dpkg fails
to install it on any UTF-8 locale I tried (el_GR, en_GB, en_US, pt_BR,
fr_FR).UTF-8. This was reproduced by others in #debian-devel channel.

When using a UTF-8 locale, dpkg falls into some kind of endless loop and
fails with a 'Cannot allocate memory' error (debug log of dpkg with when
run thus:

# dpkg -D7777 -i /home/markos/Debian/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb

is attached)

The package is located at:

http://people.debian.org/~markos/ancient-greek-literature/ancient-greek-literature_1.0-1_all.deb

(with accompanying sources)

Thanks

Konstantinos

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)

Versions of packages dpkg depends on:
ii coreutils [textutils] 5.2.1-2.1 The GNU core utilities
ii libc6 2.3.5-8 GNU C Library: Shared libraries an

dpkg recommends no packages.

-- no debconf information

--===============0858751245==
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
Content-Disposition: attachment; filename="dpkg.out"

D000010: ensure_pathname_nonexisting `/var/lib/dpkg/tmp.ci'
Selecting previously deselected package ancient-greek-literature.
(Reading database ... 174755 files and directories currently installed.)
Unpacking ancient-greek-literature (from .../ancient-greek-literature_1.0-1_all.deb) ...
D000001: process_archive oldversionstatus=not installed
D000002: maintainer_script_new nonexistent preinst `/var/lib/dpkg/tmp.ci/preinst'
D000010: tarobject ti->Name=`.' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/.' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/.' tmp=`/..dpkg-tmp' new=`/..dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/..dpkg-new'
D000010: ensure_pathname_nonexisting `/..dpkg-tmp'
D000010: tarobject ti->Name=`./usr' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/usr' flags=2 instead=`<none>'
D000100: setupvnamevbs main=`/usr' tmp=`/usr.dpkg-tmp' new=`/usr.dpkg-new'
D000100: tarobject already exists
D000100: tarobject Directory exists
D000010: ensure_pathname_nonexisting `/usr.dpkg-new'
D000010: ensure_pathname_nonexisting `/usr.dpkg-tmp'
D000010: tarobject ti->Name=`./usr/bin' Mode=755 owner=0.0 Type=53(d) ti->LinkName=`' namenode=`/usr/bin' flags=2 instead=`<none>'...

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 8 Jan 2006 07:34:45 +0100
From: Christian Perrier <email address hidden>
To: Konstantinos Margaritis <email address hidden>,
 <email address hidden>
Subject: Re: Bug#346436: [DPKG] Fails to install package with UTF-8 filenames on any UTF-8 locale

> When using a UTF-8 locale, dpkg falls into some kind of endless loop and
> fails with a 'Cannot allocate memory' error (debug log of dpkg with when
> run thus:

If the problem "only" happens with a package containing UTF-8
filenames, I'm not sure this deserves a serious severity but rather
"important".

Of course, I'm not minimizing the problem

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sun, 8 Jan 2006 11:52:16 +0200
From: Konstantinos Margaritis <email address hidden>
To: Christian Perrier <email address hidden>
Cc: <email address hidden>, <email address hidden>
Subject: Re: Bug#346436: [DPKG] Fails to install package with UTF-8 filenames on any UTF-8 locale

severity important 346436
thanks

On =CE=9A=CF=85=CF=81=CE=B9=CE=B1=CE=BA=CE=AE 08 =CE=99=CE=B1=CE=BD=CE=BF=
=CF=85=CE=AC=CF=81=CE=B9=CE=BF=CF=82 2006 08:34, Christian Perrier wrote:
> > When using a UTF-8 locale, dpkg falls into some kind of endless
> > loop and fails with a 'Cannot allocate memory' error (debug log
> > of dpkg with when run thus:
>
> If the problem "only" happens with a package containing UTF-8
> filenames, I'm not sure this deserves a serious severity but rather
> "important".

Hm, you're right, I somehow pressed '3' instead of '4' in=20
reportbug :-)

>
> Of course, I'm not minimizing the problem

I believe it would appear sooner or later anyway, regardless of the=20
particular problem with my package. With UTF-8 gaining acceptance and=20
being the default in etch, it's only a matter of time before other=20
packages with more localized elements and UTF-8 filenames appearing.=20
Let's say I acted as a lightning rod :-)

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sun, 8 Jan 2006 12:09:29 +0200
From: Konstantinos Margaritis <email address hidden>
To: <email address hidden>
Subject: Re: Bug#346436: [DPKG] Fails to install package with UTF-8 filenames on any UTF-8 locale

severity 346436 important
thanks

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Upstream dpkg bug

Changed in dpkg:
status: Unconfirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.