close (fd);
execvp (file, vec);
fprintf (stderr, "unable to exec ");
- perror ("/bin/sh");
+ perror (buffer);
_exit (-1);
/* NOTREACHED */
* if it is not a text part of a multipart/alternative
*/
if (!alternate || ct->c_subtype == TEXT_PLAIN) {
- if (concatsw)
- snprintf(buffer, sizeof(buffer), "%%l");
- else
+ if (concatsw) {
+ if (ct->c_termproc)
+ snprintf(buffer, sizeof(buffer), "%%lcat");
+ else
+ snprintf(buffer, sizeof(buffer), "%%l");
+ } else
snprintf (buffer, sizeof(buffer), "%%l%s %%F", progsw ? progsw :
moreproc && *moreproc ? moreproc : DEFAULT_PAGER);
cp = (ct->c_showproc = add (buffer, NULL));
/* default method for message/rfc822 */
if (ct->c_subtype == MESSAGE_RFC822) {
- cp = (ct->c_showproc = add ("%pecho -file %F", NULL));
+ cp = (ct->c_showproc = add ("%pshow -file %F", NULL));
return show_content_aux (ct, alternate, cp, NULL);
}
advise (NULL, "Can't convert %s to %s without iconv", src_charset,
dest_charset);
+ errno = ENOSYS;
status = NOTOK;
#endif /* ! HAVE_ICONV */
}