From d6742b1bb19c7eca8488402484a6e4f55543d789 Mon Sep 17 00:00:00 2001 From: "m@mmmmarascio.xyz" Date: Sun, 13 Mar 2016 08:49:35 -0700 Subject: [PATCH] Call context_read() before getting filter in repl The manual page of repl says "[i]f a file named `mhl.reply' exists in the user's mmh directory, it will be used instead of [the default form file]". Now this behavior is implement. --- uip/repl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/repl.c b/uip/repl.c index 71ae98e..f1e4bcc 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -145,14 +145,14 @@ main(int argc, char **argv) FILE *in; int buildsw = 0; - filter = getcpy(etcpath(mhlreply)); - setlocale(LC_ALL, ""); invo_name = mhbasename(argv[0]); /* read user profile/context */ context_read(); + filter = getcpy(etcpath(mhlreply)); + arguments = getarguments(invo_name, argc, argv, 1); argp = arguments; -- 1.7.10.4