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.

Full log


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);





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.