From bug-request at octave dot org Fri Jan 13 13:25:41 2006 Subject: lookfor: Texinfo formatting filter exited abnormally From: "John W. Eaton" To: Keith Goodman Cc: bug at octave dot org Date: Fri, 13 Jan 2006 14:25:33 -0500 On 10-Jan-2006, Keith Goodman wrote: | octave-2.9.4:2> lookfor cumsum | warning: help: Texinfo formatting filter exited abnormally | warning: help: raw Texinfo source of help text follows... Most likely, these are due to errors in the Texinfo markup for some functions in your LOADPATH. The following change might help you discover which functions are causing the trouble. jwe src/ChangeLog: =================================================================== 2006-01-13 John W. Eaton * help.cc (display_help_text): Use warning() to print raw Texinfo source. Don't redirect error output for makeinfo process. Index: src/help.cc =================================================================== RCS file: /cvs/octave/src/help.cc,v retrieving revision 1.143 diff -u -r1.143 help.cc --- src/help.cc 12 Jan 2006 17:55:22 -0000 1.143 +++ src/help.cc 13 Jan 2006 19:23:25 -0000 at @ -661,6 +661,8 @@ if (looks_like_texinfo (msg, pos)) { + os.flush (); + std::string tmp_file_name = file_ops::tempnam ("", ""); int cols = command_editor::terminal_cols (); at @ -687,9 +689,6 @@ << " --no-headers" << " --force" << " --output \"" << tmp_file_name << "\"" -#if !defined (__MINGW32__) - << " > /dev/null 2>&1" -#endif << OSSTREAM_ENDS; oprocstream filter (OSSTREAM_STR (buf)); at @ -722,8 +721,7 @@ { warning ("help: Texinfo formatting filter exited abnormally"); warning ("help: raw Texinfo source of help text follows..."); - - os << "\n" << msg; + warning ("help:\n\n%s\n\n", msg.c_str ()); } file_ops::unlink (tmp_file_name); ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------