From bug-octave-request at bevo dot che dot wisc dot edu Thu Nov 30 04:16:09 2000 Subject: help as texinfo fails From: JOERG SPECHT To: bug-octave at bevo dot che dot wisc dot edu Cc: btm089 at lbtsun7 dot ins dot uni-stuttgart dot de Date: Thu, 30 Nov 2000 11:15:48 +0100 (MET) Bug report for Octave 2.1.31 configured for %OCTAVE_CANONICAL_HOST_TYPE% Description: ----------- When using the help command for builtins with -*-texinfo-*- help messages, the makeinfo subprocess failed. E.g. with "help any" makeinfo complained about " at end deftypefn". I think, it was lost because of the missing newline at the end. Repeat-By: --------- This may be system-dependend: octave:2> help any any is a built-in function warning: help: Texinfo formatting filter exited abnormally warning: help: raw Texinfo source of help text follows... -*- texinfo -*- ... Fix: --- I append a newline to the message before filtering it through makeinfo: *** help.cc Thu Nov 30 10:48:19 2000 --- help.cc.ori Thu Nov 30 11:10:58 2000 *************** *** 639,645 **** << "See also: \\args\\.\n" << " at end macro\n"; ! filter << msg.substr (pos+1) << endl; int status = filter.close (); --- 639,645 ---- << "See also: \\args\\.\n" << " at end macro\n"; ! filter << msg.substr (pos+1); int status = filter.close (); Configuration (please do not edit this section): ----------------------------------------------- uname output: SunOS lbtsun7 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-5_10 configure opts: --with-g77 --enable-readline --enable-dl Fortran compiler: g77 FFLAGS: -O F2C: F2CFLAGS: FLIBS: -lg2c -lm -L/usr/ccs/lib -L/usr/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib -lm CPPFLAGS: INCFLAGS: -I. -I. -I./liboctave -I./src -I./libcruft/misc -I./glob -I./glob C compiler: gcc, version 2.95.2 19991024 (release) CFLAGS: -g -O2 -Wall CPICFLAG: -fPIC C++ compiler: c++, version 2.95.2 19991024 (release) CXXFLAGS: -g -O2 -Wall CXXPICFLAG: -fPIC LDFLAGS: -g LIBFLAGS: -L. RLD_FLAG: -Xlinker -R -Xlinker /usr/local/lib/octave-2.1.31 TERMLIBS: -lcurses LIBS: LEXLIB: LIBPLPLOT: LIBDLFCN: LIBGLOB: ./glob/glob.o ./glob/fnmatch.o DEFS: -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":" -DUSE_READLINE=1 -D__NO_MATH_INLINES=1 -DCXX_NEW_FRIEND_TEMPLATE_DECL=1 -DHAVE_LIBM=1 -DHAVE_LIBZ=1 -DF77_APPEND_UNDERSCORE=1 -DHAVE_LIBSOCKET=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DNPOS=std::string::npos -DSTDC_HEADERS=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 -DHAVE_CURSES_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_FLOATINGPOINT_H=1 -DHAVE_FNMATCH_H=1 -DHAVE_GLOB_H=1 -DHAVE_GRP_H=1 -DHAVE_IEEEFP_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_NAN_H=1 -DHAVE_POLL_H=1 -DHAVE_PWD_H=1 -DHAVE_SGTTY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_TERMIO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_VARARGS_H=1 -DHAVE_ATEXIT=1 -DHAVE_BCOPY=1 -DHAVE_B ------------------------------------------------------------- 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 -------------------------------------------------------------