Your message dated Tue, 27 Oct 2009 21:15:24 +0000
with message-id <e1n2to0-0007oy...@ries.debian.org>
and subject line Bug#551075: fixed in sed 4.2.1-4
has caused the Debian Bug report #551075,
regarding sed: incomplete multibyte sequences are treated improperly
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
551075: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551075
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: sed
Version: 4.2.1-3
Severity: critical
Justification: breaks unrelated software
With locale environment set to zh_CN.GBK, the installation of package
console-setup version 1.45 will be stuck due to the failure of sed to
process string like following (excerpt from console-setup.config):
zh_CN*variant*ma*french*Morocco - 法语
The last 2 Chinese characters are encoded in UTF-8, with byte sequence
that would be imcomplete for GBK.
While sed tries to decode those bytes into local encoding with a call to
mbrtowc(3), it ignored the possibility of incomplete multibyte sequence,
thus an endless loop.
A simple patch is available in the attachment.
And as a workaround to console-setup, the locale could be set to C to
bypass the sed problem.
Regards
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages sed depends on:
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libselinux1 2.0.85-3 SELinux shared libraries
sed recommends no packages.
sed suggests no packages.
-- no debconf information
diff -urN sed-4.2.1/sed/execute.c sed-4.2.1.new/sed/execute.c
--- sed-4.2.1/sed/execute.c 2009-06-26 18:13:53.000000000 +0800
+++ sed-4.2.1.new/sed/execute.c 2009-10-15 18:43:18.000000000 +0800
@@ -254,8 +254,8 @@
{
size_t n = MBRLEN (string, length, &to->mbstate);
- /* An invalid sequence is treated like a singlebyte character. */
- if (n == (size_t) -1)
+ /* An invalid or imcomplete sequence is treated like a singlebyte character. */
+ if (n == (size_t) -1 || n == (size_t) -2)
{
memset (&to->mbstate, 0, sizeof (to->mbstate));
n = 1;
--- End Message ---
--- Begin Message ---
Source: sed
Source-Version: 4.2.1-4
We believe that the bug you reported is fixed in the latest version of
sed, which is due to be installed in the Debian FTP archive:
sed_4.2.1-4.diff.gz
to main/s/sed/sed_4.2.1-4.diff.gz
sed_4.2.1-4.dsc
to main/s/sed/sed_4.2.1-4.dsc
sed_4.2.1-4_amd64.deb
to main/s/sed/sed_4.2.1-4_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 551...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Clint Adams <sch...@debian.org> (supplier of updated sed package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 27 Oct 2009 12:31:21 -0400
Source: sed
Binary: sed
Architecture: source amd64
Version: 4.2.1-4
Distribution: unstable
Urgency: medium
Maintainer: Clint Adams <sch...@debian.org>
Changed-By: Clint Adams <sch...@debian.org>
Description:
sed - The GNU sed stream editor
Closes: 551075
Changes:
sed (4.2.1-4) unstable; urgency=medium
.
* Bump to Standards-Version 3.8.3.
* Apply patch from WANG Yunfeng to treat incomplete multibyte
sequences as a single-byte character. closes: #551075.
* Add dependency on dpkg (>= 1.15.4) | install-info.
Checksums-Sha1:
72c3e0adc2a4b211606cb4eef078ce78949d4d38 1802 sed_4.2.1-4.dsc
d4fe00d4e6528b4b311066551ed3f9d73daaccf4 64099 sed_4.2.1-4.diff.gz
cde00de71abf18d98661548dc34bdf5472d8ebcf 250814 sed_4.2.1-4_amd64.deb
Checksums-Sha256:
7cdd27ecb85879d426cd4b2a4f4d18e3466387b64dc803db94f64b6b04dab8bb 1802
sed_4.2.1-4.dsc
cecd01a14c8b48eb7e5b35130b52100b4b4d1411f69238286634ca25e403e8dd 64099
sed_4.2.1-4.diff.gz
c320a9d86fe8c33aa3c3ae16aafa8a61e73f0ae86698341b61b9e5e0ee977046 250814
sed_4.2.1-4_amd64.deb
Files:
b9bcf8173d5c37777d81f9313540c8a1 1802 utils required sed_4.2.1-4.dsc
5747cb0303799fcac359e0f546897a23 64099 utils required sed_4.2.1-4.diff.gz
cfd0c2b1ecbe66c7dc993b8d4fa94b41 250814 utils required sed_4.2.1-4_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Debian!
iQIcBAEBCgAGBQJK5yDSAAoJEFWSMx4ZnTiovTQP/2Fc1daCV+RbbsbYzxphKgk7
XdTqixGxZ6Et787WaqLF/CAyKOo6HXq+3sfAU5So2qQWRYsToy0+Kma3lxt0lVis
Yzi8pqgty98fdqkHve8nVDfnN02VZ+wm6sXI0GOL6tWmdNXaFNWbpw7zNmx4DxN7
CNwYNz8Kj91maOZRRHIB9gdZcAcp04Hamk7r37L79fsFiRmS1atj68zOh/mzKFez
8yhehdCjXTAL5410u0q3o+vLT4CsSPjxICqibtxMO4IEDSaq63Qyh6OWfVRnF4sq
br99r5C38LWNJqjwQhGMd1HoQCIEKBdmt/pbW48MvLeBhHxUQbInaM761jH/UOVg
EeckCnvcdWVa/qvWk+xw33mUPi1iNtmQNKMTWkq3L0kMvo895378CP+VdC8WIWeD
KTQl2CbGgQVh0KUIs9DMKe4S4x1ZZbuUpkHkJFxy97X5k+mz+usyPR0p4nDSB6mP
D2fK7K48s5AtPXQ7eULvXdeEDz7MDeSwVqIrbFuUuqKCP7zORWElFWmrV4puxZjQ
k1sxt55RhdL8+Mn7LSTGbKMD5Utn94dipBJ3mWF2koM9rxQrsQGHdWeeFOsyo1qd
ByEnuM8LwD78+59RalvVL4H+kdZpnc1XK+YbmYMv4/is+xGVI9qCBAjzWJmpcF+D
jGx0y0570M7s1Mxe7118
=L8Uu
-----END PGP SIGNATURE-----
--- End Message ---