From: markus schnalke Date: Mon, 4 Jun 2012 18:23:28 +0000 (+0200) Subject: Removed configure flag --disable-locale and have it always enabled. X-Git-Tag: mmh-thesis-end~36 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=ccf4f175ef4c4e7522f9510a4a1149c15d810dd9;p=mmh Removed configure flag --disable-locale and have it always enabled. Todays system are assumed to have locale support. --- diff --git a/configure.ac b/configure.ac index f757b3f..2633228 100644 --- a/configure.ac +++ b/configure.ac @@ -46,17 +46,6 @@ if test x"$enable_nmh_debug" = x"yes"; then enable_debug=yes fi -dnl Do you want to disable use of locale functions -AH_TEMPLATE([LOCALE], -[Undefine if you don't want locale features. By default this is defined.]) -AC_ARG_ENABLE([locale], -AC_HELP_STRING([--disable-locale], [turn off locale features]), -[if test x$enableval = xyes; then - AC_DEFINE(LOCALE) -fi], -AC_DEFINE(LOCALE) -) - dnl What method of locking to use? AC_ARG_WITH(locking, AS_HELP_STRING([--with-locking=@<:@dot|fcntl|flock|lockf@:>@], diff --git a/uip/ali.c b/uip/ali.c index 8effd63..b5bbfbe 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -60,9 +60,7 @@ main(int argc, char **argv) char *vec[NVEC], **arguments; struct aka *ak; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/anno.c b/uip/anno.c index c80b782..2647d97 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -74,9 +74,7 @@ main(int argc, char **argv) int append = 0; /* append annotations instead of default prepend */ int number = 0; /* delete specific number of like elements if set */ -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); context_read(); diff --git a/uip/ap.c b/uip/ap.c index 9f8e6f0..c293a53 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -47,9 +47,7 @@ main(int argc, char **argv) char buf[BUFSIZ], **argp; char **arguments, *addrs[NADDRS]; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/burst.c b/uip/burst.c index 1464cd6..e657c33 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -45,9 +45,7 @@ main(int argc, char **argv) struct smsg *smsgs; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/comp.c b/uip/comp.c index 680c0fc..4768fc4 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -41,10 +41,7 @@ main(int argc, char **argv) struct msgs *mp = NULL; char *fmtstr; - -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/dist.c b/uip/dist.c index d00f686..c1f4f9d 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -41,9 +41,7 @@ main(int argc, char **argv) struct msgs *mp = NULL; char *fmtstr; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/dp.c b/uip/dp.c index aee4b29..1a91678 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -42,9 +42,7 @@ main(int argc, char **argv) char buf[BUFSIZ], **argp, **arguments; char *dates[NDATES]; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/flist.c b/uip/flist.c index 2a002a5..057d5f4 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -118,9 +118,7 @@ main(int argc, char **argv) char **arguments; char buf[BUFSIZ]; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/fmtdump.c b/uip/fmtdump.c index fc94247..a0e6e14 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -46,9 +46,7 @@ main(int argc, char **argv) char buf[BUFSIZ], *fmtstr, **argp, **arguments; struct format *fmt; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/folder.c b/uip/folder.c index 34b3d98..8638151 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -115,9 +115,7 @@ main(int argc, char **argv) char *cp, *dp, *msg = NULL, *argfolder = NULL; char **ap, **argp, buf[BUFSIZ], **arguments; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/forw.c b/uip/forw.c index b75bd2e..54b7c07 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -68,9 +68,7 @@ main(int argc, char **argv) char *fmtstr; int buildsw = 0; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/inc.c b/uip/inc.c index 4b75c6e..f737d69 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -152,9 +152,7 @@ main(int argc, char **argv) SAVEGROUPPRIVS(); TRYDROPGROUPPRIVS(); -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mark.c b/uip/mark.c index c1da644..d4a3729 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -56,9 +56,7 @@ main(int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 76626db..113ff38 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -117,9 +117,7 @@ main(int argc, char **argv) done = unlink_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhl.c b/uip/mhl.c index 8b29ee4..18d0176 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -226,10 +226,7 @@ main(int argc, char **argv) char buf[BUFSIZ], *files[MAXARGS]; char **argp, **arguments; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif - invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhlist.c b/uip/mhlist.c index e507127..c66b7cf 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -94,9 +94,7 @@ main(int argc, char **argv) done=freects_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhmail.c b/uip/mhmail.c index a85899d..b3a9acb 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -48,9 +48,7 @@ main(int argc, char **argv) FILE *out; char *tfile = NULL; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* foil search of user profile/context */ diff --git a/uip/mhpath.c b/uip/mhpath.c index 605d13c..a8de5cb 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -27,9 +27,7 @@ main(int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhshow.c b/uip/mhshow.c index e1bcf8f..0b49b7e 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -100,9 +100,7 @@ main(int argc, char **argv) done=freects_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); if (mh_strcasecmp(invo_name, "next")==0) { mode = NEXT; diff --git a/uip/mhstore.c b/uip/mhstore.c index b0c08da..ae812ad 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -132,9 +132,7 @@ main(int argc, char **argv) done=freects_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/mhtest.c b/uip/mhtest.c index d24694e..1c1684f 100644 --- a/uip/mhtest.c +++ b/uip/mhtest.c @@ -97,9 +97,7 @@ main(int argc, char **argv) done=freects_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/new.c b/uip/new.c index 7c3191a..a79845c 100644 --- a/uip/new.c +++ b/uip/new.c @@ -435,9 +435,7 @@ main(int argc, char **argv) sequences[0] = NULL; sequences[1] = NULL; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/packf.c b/uip/packf.c index b565c16..763b6e7 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -30,9 +30,7 @@ main(int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/pick.c b/uip/pick.c index b817a0b..e94c259 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -93,9 +93,7 @@ main(int argc, char **argv) done=putzero_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/prompter.c b/uip/prompter.c index e1f0bff..823760e 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -57,9 +57,7 @@ main(int argc, char **argv) FILE *in, *out; char *tfile = NULL; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/rcvdist.c b/uip/rcvdist.c index fa2a170..2ba6097 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -44,9 +44,7 @@ main(int argc, char **argv) done=unlink_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/rcvpack.c b/uip/rcvpack.c index fe98a44..79c3450 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -27,9 +27,7 @@ main(int argc, char **argv) char *cp, *file = NULL, buf[BUFSIZ]; char **argp, **arguments; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 8121e2d..bb14ed9 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -60,9 +60,7 @@ main(int argc, char **argv) done=unlink_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/refile.c b/uip/refile.c index 76384dd..6c5a8f6 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -57,9 +57,7 @@ main(int argc, char **argv) struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); context_read(); diff --git a/uip/repl.c b/uip/repl.c index 462498e..9c9e5ce 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -143,9 +143,7 @@ main(int argc, char **argv) filter = getcpy(etcpath(mhlreply)); -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/rmf.c b/uip/rmf.c index 9d20752..05b3e96 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -34,9 +34,7 @@ main(int argc, char **argv) char *cp, *folder = NULL, newfolder[BUFSIZ]; char buf[BUFSIZ], **argp, **arguments; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/rmm.c b/uip/rmm.c index 0aab0ba..51be03a 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -33,10 +33,7 @@ main(int argc, char **argv) struct msgs *mp; pid_t pid; - -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); context_read(); diff --git a/uip/scan.c b/uip/scan.c index 269193f..ba90e40 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -41,9 +41,7 @@ main(int argc, char **argv) struct msgs *mp; FILE *in; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/send.c b/uip/send.c index 06058e8..bcbd54d 100644 --- a/uip/send.c +++ b/uip/send.c @@ -88,10 +88,7 @@ main(int argc, char **argv) struct stat st; struct stat st2; - -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/slocal.c b/uip/slocal.c index ec788e3..9d46802 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -174,9 +174,7 @@ main(int argc, char **argv) char mailbox[BUFSIZ], tmpfil[BUFSIZ]; char **argp, **arguments; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(*argv); /* foil search of user profile/context */ diff --git a/uip/sortm.c b/uip/sortm.c index 4cd999d..ed09181 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -73,9 +73,7 @@ main(int argc, char **argv) struct msgs *mp; struct smsg **dlist; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ diff --git a/uip/spost.c b/uip/spost.c index 4384bc4..4c1210b 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -147,9 +147,7 @@ main(int argc, char **argv) char *sargv[16], buf[BUFSIZ], name[NAMESZ]; FILE *in; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* foil search of user profile/context */ diff --git a/uip/whatnow.c b/uip/whatnow.c index ead1bd5..bbb468d 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -117,10 +117,7 @@ main(int argc, char **argv) FILE *f; /* read pointer for bgnd proc */ int n; /* set on -n to detach command */ -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif - invo_name = mhbasename(argv[0]); /* read user profile/context */