GNU bug report logs - #5596
Term type warning lacks final \n

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 18 Feb 2010 15:01:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5596 in the body.
You can then email your comments to 5596 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

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


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5596; Package emacs. (Thu, 18 Feb 2010 15:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 18 Feb 2010 15:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: Term type warning lacks final \n
Date: Thu, 18 Feb 2010 23:00:13 +0800
Fellas, you forgot the final \n:
$ TERM=dumb emacs -nw
emacs: Terminal type "dumb" is not powerful enough to run Emacs.
It lacks the ability to position the cursor.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type.  It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.$





Reply sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
You have taken responsibility. (Thu, 18 Feb 2010 17:06:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Thu, 18 Feb 2010 17:06:02 GMT) Full text and rfc822 format available.

Message #10 received at 5596-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: jidanni <at> jidanni.org
Subject: Re: bug#5596: Term type warning lacks final \n
Date: Thu, 18 Feb 2010 12:03:52 -0500
> $ TERM=dumb emacs -nw
> emacs: Terminal type "dumb" is not powerful enough to run Emacs.
> It lacks the ability to position the cursor.
> If that is not the actual type of terminal you have,
> use the Bourne shell command `TERM=... export TERM' (C-shell:
> `setenv TERM ...') to specify the correct type.  It may be necessary
> to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.$

Thanks should be fixed with the patch below,


        Stefan


=== modified file 'src/term.c'
--- src/term.c	2010-01-13 08:35:10 +0000
+++ src/term.c	2010-02-18 16:51:07 +0000
@@ -3938,6 +3938,8 @@
   va_start (ap, str);
   fprintf (stderr, "emacs: ");
   vfprintf (stderr, str, ap);
+  if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n'))
+    fprintf (stderr, "\n");
   va_end (ap);
   fflush (stderr);
   exit (1);





bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Mar 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.