Your message dated Tue, 12 Aug 2008 04:47:05 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#494771: fixed in screen-message 0.13-1
has caused the Debian Bug report #494771,
regarding Please ignore trailing newline when reading from stdin
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.)


-- 
494771: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494771
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: screen-message
Version: 0.11-1
Tags: patch

Please make screen-message ignore trailing newlines when reading the text
from stdin. This makes invokations such as `echo "Hello" | sm` do the right
thing.

Patch attached.


Regards,

-- 
Chris Lamb, UK                                       [EMAIL PROTECTED]
                                                            GPG: 0x634F9A20
diff -urNad screen-message-0.11.orig/sm.c screen-message-0.11/sm.c
--- screen-message-0.11.orig/sm.c       2008-08-12 04:30:53.000000000 +0100
+++ screen-message-0.11/sm.c    2008-08-12 04:31:20.000000000 +0100
@@ -178,6 +178,11 @@
                        while ((num = fread (buf, 1, sizeof(buf), stdin)) > 0) {
                                g_string_append_len(input, buf, num);
                        }
+
+                       // remove trailing newline, if any
+                       if ((input->len > 0) && (input->str[input->len - 1] == 
'\n')) {
+                               g_string_truncate(input, input->len - 1);
+                       }
                } else {
                        int i;
 

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: screen-message
Source-Version: 0.13-1

We believe that the bug you reported is fixed in the latest version of
screen-message, which is due to be installed in the Debian FTP archive:

screen-message_0.13-1.diff.gz
  to pool/main/s/screen-message/screen-message_0.13-1.diff.gz
screen-message_0.13-1.dsc
  to pool/main/s/screen-message/screen-message_0.13-1.dsc
screen-message_0.13.orig.tar.gz
  to pool/main/s/screen-message/screen-message_0.13.orig.tar.gz
sm_0.13-1_i386.deb
  to pool/main/s/screen-message/sm_0.13-1_i386.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joachim Breitner <[EMAIL PROTECTED]> (supplier of updated screen-message 
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: SHA1

Format: 1.8
Date: Tue, 12 Aug 2008 01:35:39 -0300
Source: screen-message
Binary: sm
Architecture: source i386
Version: 0.13-1
Distribution: unstable
Urgency: low
Maintainer: Joachim Breitner <[EMAIL PROTECTED]>
Changed-By: Joachim Breitner <[EMAIL PROTECTED]>
Description: 
 sm         - Displays a short text fullscreen
Closes: 494771
Changes: 
 screen-message (0.13-1) unstable; urgency=low
 .
   * New upstream release
     + Floats and auto-hides text entry
     + Ignore trailing newlines on stdin (Closes: 494771), thanks
       to Chris Lamb for the patch.
   * Bump standards version, no change
Checksums-Sha1: 
 c525b1f02840f1f402774d9546a3e51d6bf5d391 1186 screen-message_0.13-1.dsc
 506135409feec9c9f0dca2741ea0e6d78706d26e 74078 screen-message_0.13.orig.tar.gz
 9889fd8f904522ca484dda1b3613971d7aee03d5 83779 screen-message_0.13-1.diff.gz
 37eb864b5d695d1af13cf30862a3e9f762ee2cd1 16104 sm_0.13-1_i386.deb
Checksums-Sha256: 
 8b1abb935d8b82f0078109b013c43114223669c77aad8cb8cc3a6ffa3456e182 1186 
screen-message_0.13-1.dsc
 9213ab18981bae734e8ef54284e4a534eee3fae88c0b61abce1fe20d022cea8c 74078 
screen-message_0.13.orig.tar.gz
 9a6bdefd34c5b0e793a316df835bb7efb461c71e4ddd2c8d269d11c340d7b177 83779 
screen-message_0.13-1.diff.gz
 83c40f5ec3e1738c9c9862828ec4c948f57690b7fbae19e2ae17f809fe9deca1 16104 
sm_0.13-1_i386.deb
Files: 
 d20a87e3dfdbb842c77142650a1c8e22 1186 games optional screen-message_0.13-1.dsc
 cd33c0cff4f107233fa8b3ce7743ea03 74078 games optional 
screen-message_0.13.orig.tar.gz
 b834d623d3ed143c4a50d6acfc6b6471 83779 games optional 
screen-message_0.13-1.diff.gz
 e3cadbcd401029f36b560bc062fceff7 16104 games optional sm_0.13-1_i386.deb

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

iEYEARECAAYFAkihE/0ACgkQ9ijrk0dDIGwg7ACgqjwBpKckc6GzCKAGfYZer2n1
pAIAoJTFi7YqiwWFHPsf3YHkIohsPjj9
=Yy3e
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to