Your message dated Fri, 23 Oct 2015 09:50:00 +0000
with message-id <[email protected]>
and subject line Bug#799301: fixed in expect 5.45-7
has caused the Debian Bug report #799301,
regarding expect: Fake EOFs with UTF-8 encoded symbols
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 [email protected]
immediately.)


-- 
799301: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799301
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: expect
Version: 5.45-6
Severity: normal
Tags: patch

Sometimes fake EOFs occur when running with a multi-byte locales over
serial ports. The reason is when Tcl_ReadChars() returns 0 it is
considered EOF in expRead().

When select() detects there is at least one byte available, it does not
mean a multibyte-locale character is also available because it may be
incomplete, so Tcl_ReadChars() may return 0 and it is not an EOF
condition, therefore explicit check of EOF is needed.

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages expect depends on:
ii  libc6       2.19-18+deb8u1
ii  libtcl8.6   8.6.2+dfsg-2
ii  tcl-expect  5.45-6

Versions of packages expect recommends:
ii  tcl8.6  8.6.4+dfsg-2
ii  tk8.6   8.6.2-1

expect suggests no packages.

-- no debconf information
Index: expect-5.45/expect.c
===================================================================
--- expect-5.45.orig/expect.c
+++ expect-5.45/expect.c
@@ -1863,7 +1863,11 @@ expRead(
 	/* little, so that from now on it means "no new data arrived */
 	/* but it should be looked at again anyway". */
 	if (cc == 0) {
-	    cc = EXP_EOF;
+	    /* the meaning of 0 from i_read just may mean eof. So, whether */
+	    /* the eof condition really exists must be checked explicitly. */
+	    if (Tcl_Eof(esPtr->channel)) {
+		cc = EXP_EOF;
+	    }
 	} else if (cc > 0) {
 	    /* successfully read data */
 	} else {

--- End Message ---
--- Begin Message ---
Source: expect
Source-Version: 5.45-7

We believe that the bug you reported is fixed in the latest version of
expect, which is due to be installed in the Debian FTP archive.

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sergei Golovan <[email protected]> (supplier of updated expect 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 23 Oct 2015 11:27:59 +0300
Source: expect
Binary: expect tcl-expect tcl-expect-dev
Architecture: source amd64
Version: 5.45-7
Distribution: unstable
Urgency: medium
Maintainer: Sergei Golovan <[email protected]>
Changed-By: Sergei Golovan <[email protected]>
Description:
 expect     - Automates interactive applications
 tcl-expect - Automates interactive applications (Tcl package)
 tcl-expect-dev - Automates interactive applications (development)
Closes: 799301
Changes:
 expect (5.45-7) unstable; urgency=medium
 .
   * Applied a few fixes by upstream which were included in Expect 5.45.3
     never released as a tarball (closes: #799301).
   * Bumped standards version to 3.9.6.
Checksums-Sha1:
 ddbb0f166f5d7bbc20a324702b81ca0d74356026 1891 expect_5.45-7.dsc
 b88ffb77845e6b45f228a447737303f903a6b9fa 20508 expect_5.45-7.debian.tar.xz
 52f2d6054524de3d8d0370473cbfa780e43d137c 164478 expect_5.45-7_amd64.deb
 fd58b3b47a6e8502f31835a51e1a8dda372767a0 90350 tcl-expect-dev_5.45-7_amd64.deb
 e9d31be8b594955005ccc40f6f6da0aa62e46d0d 130478 tcl-expect_5.45-7_amd64.deb
Checksums-Sha256:
 b0396d962a9346da102e4d9f67406e780a487d936491475915f1b44e6445aa00 1891 
expect_5.45-7.dsc
 d70445f99ed46781ea15340d40c83b7204adbed672caec866842891fc9e35ada 20508 
expect_5.45-7.debian.tar.xz
 29ef5d8af01056f1ff5f72fc9871b264600b7ee80420152b3ab247105fd8b720 164478 
expect_5.45-7_amd64.deb
 c8c36068cf8e4054b89ba430d9ec99f3263997fecac4149ce0cb442736d4ce24 90350 
tcl-expect-dev_5.45-7_amd64.deb
 0ba45a4c2fe0f605f8fe43d0b672ce352cbe4e805dc574d81925c4186a95abb2 130478 
tcl-expect_5.45-7_amd64.deb
Files:
 791d81d89e4843990944eddd637c4018 1891 interpreters optional expect_5.45-7.dsc
 a29bc5909524f19378c3cf820ced5e32 20508 interpreters optional 
expect_5.45-7.debian.tar.xz
 cd29fa39f0e2928b955e0af72fa5047a 164478 interpreters optional 
expect_5.45-7_amd64.deb
 c1232eb1374e32bf64d2deba9282156d 90350 devel optional 
tcl-expect-dev_5.45-7_amd64.deb
 b20f4d603f9cea711d5f19ddf7b2d020 130478 interpreters optional 
tcl-expect_5.45-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVinx3FfnxjJPgTkdAQjELg//bpByBB/dj0IGqGnhoUuB1agdlchEO1i+
ydM1Ld6ptcTXpEtoneumOBkLUXvfUl3mFjn/NMyl/6VDJBW4l+XrCZD6T4aYddSC
ZHepZvr3Uzu0BkLg5gyDtDPmZGTXu6uEVkHelQ1eyVyA+3qIf2E2e796My/I4kfN
FMWHwPBoIA9gWftVn5i8sbV2F8kuKkQitS8TQ46wQljF6UMzrecS2mW1LxuFPo26
M017xFV91s/ahFeSGGR3bdEdnscToXqo4P/rDA4VHBsDfVBawkgABJA62GzR0SkY
nksx4qWhnoD7cOwJQx9Jtsne+lLUIqlRPhHtenHsKhZT8zVM9NZcFcpKZe7nMTS3
0cLQWvXGg/eKegINgQIqdXe9VC/cY1h2/Ixc4dM8PMkoo3UXf84Rrnznf1bigoek
pR3on066DxFZqpJ0+NKcbRjjio0//9wxYFbdB/NQsphJC7encyFFvTYciwNLVBxE
cQI19cTrPrCmBq746rkJT/GwryXwDjhUKR8JjhE9r06ba5cA+lbsm+95j6nXAGbH
bywzDWpx7FLbQ+0uy6Al9mR7wC2DC9hWPkCKSLC6nRuyKflSAOliXAWa0AEiTjde
NZs37EbLK9Zi/B+FBoDtokHlRc1xX4LjOXV4Hi3jaFs9n3T0u5rDkqaQOU6iWAYH
sfbtt/9pzAo=
=imsU
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to