]> diplodocus.org Git - nmh/commitdiff
Remove the --disable-locale configure option and make locale support
authorKen Hornstein <kenh@pobox.com>
Mon, 20 Jan 2014 04:21:32 +0000 (23:21 -0500)
committerKen Hornstein <kenh@pobox.com>
Mon, 20 Jan 2014 04:21:32 +0000 (23:21 -0500)
unconditional.

55 files changed:
configure.ac
sbr/fmt_compile.c
sbr/fmt_scan.c
sbr/gans.c
sbr/m_atoi.c
sbr/m_convert.c
sbr/uprf.c
uip/ali.c
uip/anno.c
uip/ap.c
uip/burst.c
uip/comp.c
uip/conflict.c
uip/dist.c
uip/dp.c
uip/flist.c
uip/fmtdump.c
uip/fmttest.c
uip/folder.c
uip/forw.c
uip/inc.c
uip/install-mh.c
uip/mark.c
uip/mhbuild.c
uip/mhfixmsg.c
uip/mhl.c
uip/mhlist.c
uip/mhn.c
uip/mhpath.c
uip/mhshow.c
uip/mhstore.c
uip/mhtest.c
uip/msgchk.c
uip/msh.c
uip/new.c
uip/packf.c
uip/pick.c
uip/post.c
uip/prompter.c
uip/rcvdist.c
uip/rcvpack.c
uip/rcvstore.c
uip/rcvtty.c
uip/refile.c
uip/repl.c
uip/rmf.c
uip/rmm.c
uip/scan.c
uip/send.c
uip/show.c
uip/slocal.c
uip/sortm.c
uip/viamail.c
uip/whatnow.c
uip/whom.c

index 61a8beb27d3c02dec56e05215f9cac97f38ddcd0..35fc7810dbb35f18d03ca58f55d2d000801a2e8d 100644 (file)
@@ -28,14 +28,6 @@ dnl Do you want to debug nmh?
 AC_ARG_ENABLE([debug],
   AS_HELP_STRING([--enable-debug],[enable nmh code debugging]))
 
 AC_ARG_ENABLE([debug],
   AS_HELP_STRING([--enable-debug],[enable nmh code debugging]))
 
-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],
-  [AS_HELP_STRING([--disable-locale], [turn off locale features])],
-  [AS_IF([test x$enableval = xyes], [AC_DEFINE(LOCALE)])],
-  [AC_DEFINE(LOCALE)])
-
 dnl Do you want client-side support for using SASL for authentication?
 dnl Note that this code will be enabled for both POP and SMTP
 AC_ARG_WITH([cyrus-sasl], AS_HELP_STRING([--with-cyrus-sasl],
 dnl Do you want client-side support for using SASL for authentication?
 dnl Note that this code will be enabled for both POP and SMTP
 AC_ARG_WITH([cyrus-sasl], AS_HELP_STRING([--with-cyrus-sasl],
index 75adc08e2816f2286c41ebf6360ce025686304bc..970e71e5abd3d489bd7f66ff765c32b37670bcd8 100644 (file)
@@ -364,11 +364,7 @@ compile_error(char *str, char *cp)
     usr_fstring[errpos] = '\0';
 
     for (i = errpos-errctx; i < errpos; i++) {
     usr_fstring[errpos] = '\0';
 
     for (i = errpos-errctx; i < errpos; i++) {
-#ifdef LOCALE
        if (iscntrl((unsigned char) usr_fstring[i]))
        if (iscntrl((unsigned char) usr_fstring[i]))
-#else
-       if (usr_fstring[i] < 32)
-#endif
            usr_fstring[i] = '_';
     }
 
            usr_fstring[i] = '_';
     }
 
index 9b84861cb123b25f5e4cbc71e2e3494caa33f6c1..e4d79d57d71597eea672c988e3ad8b6d8fdbcae2 100644 (file)
@@ -47,7 +47,6 @@ match (char *str, char *sub)
     int c1, c2;
     char *s1, *s2;
 
     int c1, c2;
     char *s1, *s2;
 
-#ifdef LOCALE
     while ((c1 = *sub)) {
        c1 = (isascii((unsigned char) c1) && isalpha((unsigned char) c1) &&
              isupper((unsigned char) c1)) ? tolower((unsigned char) c1) : c1;
     while ((c1 = *sub)) {
        c1 = (isascii((unsigned char) c1) && isalpha((unsigned char) c1) &&
              isupper((unsigned char) c1)) ? tolower((unsigned char) c1) : c1;
@@ -71,19 +70,6 @@ match (char *str, char *sub)
        if (! c1)
            return 1;
     }
        if (! c1)
            return 1;
     }
-#else
-    while ((c1 = *sub)) {
-       while ((c2 = *str++) && (c1 | 040) != (c2 | 040))
-           ;
-       if (! c2)
-           return 0;
-       s1 = sub + 1; s2 = str;
-       while ((c1 = *s1++) && (c1 | 040) == (*s2++ | 040))
-           ;
-       if (! c1)
-           return 1;
-    }
-#endif
     return 1;
 }
 
     return 1;
 }
 
index 6b76b7ba0a050b2a99fe93a1a0fbafc4c28f048e..70234029ed9720754da058ef20f894ef04438dda 100644 (file)
@@ -26,12 +26,7 @@ gans (char *prompt, struct swit *ansp)
            if (i == EOF)
                return 0;
            if (cp < &ansbuf[sizeof ansbuf - 1]) {
            if (i == EOF)
                return 0;
            if (cp < &ansbuf[sizeof ansbuf - 1]) {
-#ifdef LOCALE
                i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
                i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
-#else
-               if (i >= 'A' && i <= 'Z')
-                   i += 'a' - 'A';
-#endif
                *cp++ = i;
            }
        }
                *cp++ = i;
            }
        }
index f05271f7102d0e0f09b0009bdea263f5433be37d..da6730df5c5447615855755b54e257b43dac9a2d 100644 (file)
@@ -19,11 +19,7 @@ m_atoi (char *str)
     char *cp;
 
     for (i = 0, cp = str; *cp; cp++) {
     char *cp;
 
     for (i = 0, cp = str; *cp; cp++) {
-#ifdef LOCALE
        if (!isdigit((unsigned char) *cp))
        if (!isdigit((unsigned char) *cp))
-#else
-       if (*cp < '0' || *cp > '9')
-#endif
            return 0;
 
        i *= 10;
            return 0;
 
        i *= 10;
index 62268fbfafbcb17e05760afeae34f77c2b1c1d11..d7080065783b1ffa240cbb2f5188e2c8fd3f93cc 100644 (file)
@@ -286,14 +286,9 @@ m_conv (struct msgs *mp, char *str, int call)
            return BADNUM;
     }
 
            return BADNUM;
     }
 
-#ifdef LOCALE
     /* doesn't enforce lower case */
     for (bp = buf; (isalpha((unsigned char) *cp) || *cp == '.')
            && (bp - buf < (int) sizeof(buf) - 1); )
     /* doesn't enforce lower case */
     for (bp = buf; (isalpha((unsigned char) *cp) || *cp == '.')
            && (bp - buf < (int) sizeof(buf) - 1); )
-#else
-    for (bp = buf; ((*cp >= 'a' && *cp <= 'z') || *cp == '.')
-           && (bp - buf < (int) sizeof(buf) - 1); )
-#endif /* LOCALE */
     {
        *bp++ = *cp++;
     }
     {
        *bp++ = *cp++;
     }
index 5da5e7652d32a9943888e2ea12b89be562e5c026..500b036da116c5f802f3727d71601624e5066b60 100644 (file)
@@ -9,11 +9,6 @@
 
 #include <h/mh.h>
 
 
 #include <h/mh.h>
 
-#ifndef LOCALE
-# define TO_LOWER 040
-# define NO_MASK  000
-#endif
-
 
 int
 uprf (char *c1, char *c2)
 
 int
 uprf (char *c1, char *c2)
@@ -25,16 +20,11 @@ uprf (char *c1, char *c2)
 
     while ((c = *c2++))
     {
 
     while ((c = *c2++))
     {
-#ifdef LOCALE
        c &= 0xff;
        mask = *c1 & 0xff;
        c = (isalpha(c) && isupper(c)) ? tolower(c) : c;
        mask = (isalpha(mask) && isupper(mask)) ? tolower(mask) : mask;
        if (c != mask)
        c &= 0xff;
        mask = *c1 & 0xff;
        c = (isalpha(c) && isupper(c)) ? tolower(c) : c;
        mask = (isalpha(mask) && isupper(mask)) ? tolower(mask) : mask;
        if (c != mask)
-#else
-       mask = (isalpha(c) && isalpha(*c1)) ?  TO_LOWER : NO_MASK;
-       if ((c | mask) != (*c1 | mask))
-#endif
            return 0;
        else
            c1++;
            return 0;
        else
            c1++;
index dda0a2c1f5907a1d27c4c0342e7027843f36c572..534c25d886fdec0a267a6e05823ea2b8b234bf47 100644 (file)
--- a/uip/ali.c
+++ b/uip/ali.c
@@ -53,9 +53,7 @@ main (int argc, char **argv)
     char **vec = mh_xmalloc (argc * sizeof (char *)), **arguments;
     struct aka *ak;
 
     char **vec = mh_xmalloc (argc * sizeof (char *)), **arguments;
     struct aka *ak;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index d18713ae668a3c16f9ff334b201936bee291fdc2..75bcc68220dbf56357f0a42ca0c366a2036d7f45 100644 (file)
@@ -94,9 +94,7 @@ main (int argc, char **argv)
     int                list = 0;               /* list header elements if set */
     int                number = 0;             /* delete specific number of like elements if set */
 
     int                list = 0;               /* list header elements if set */
     int                number = 0;             /* delete specific number of like elements if set */
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index f0b0baa98f3e408c80f22c1f3a402918b12710a2..a8f9169f9a597494caaf1277453cea698bd134a7 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -53,9 +53,7 @@ main (int argc, char **argv)
     char buf[BUFSIZ], **argp;
     char **arguments, *addrs[NADDRS];
 
     char buf[BUFSIZ], **argp;
     char **arguments, *addrs[NADDRS];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 34ef10b024d6e883b3fc6473ad27a49e14e85e1f..e838422b93c7e2b636f3bd084acb7d46dd669ce1 100644 (file)
@@ -75,9 +75,7 @@ main (int argc, char **argv)
     struct smsg *smsgs;
     struct msgs *mp;
 
     struct smsg *smsgs;
     struct msgs *mp;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 08507299e63c8ffb23785cadfe42ef8013e7179a..a7300c34300c647f5c6a4ea4fa081e15ec2c3f25 100644 (file)
@@ -83,9 +83,7 @@ main (int argc, char **argv)
     struct format *fmt;
     struct stat st;
 
     struct format *fmt;
     struct stat st;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index a43c70ee2c899edb578d11b1353c94483f4ad724..9174a39b7dc1eae8ed1ed50c9b51f07e230aca34 100644 (file)
@@ -68,9 +68,7 @@ main (int argc, char **argv)
     char *cp, **argp, **arguments;
     char buf[BUFSIZ], *akv[50];
 
     char *cp, **argp, **arguments;
     char buf[BUFSIZ], *akv[50];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
index d3ceaec25a480e4cf591570a0b8b9b086198892b..00503be5552edf7893365c927499a64acdf529ca 100644 (file)
@@ -83,9 +83,7 @@ main (int argc, char **argv)
     struct msgs *mp = NULL;
     struct stat st;
 
     struct msgs *mp = NULL;
     struct stat st;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 67eef06189310e92b5942924febf5c7944379013..8245f60ad66eb06693b333ff46e8ae522de5f604 100644 (file)
--- a/uip/dp.c
+++ b/uip/dp.c
@@ -51,9 +51,7 @@ main (int argc, char **argv)
     char buf[BUFSIZ], **argp, **arguments;
     char *dates[NDATES];
 
     char buf[BUFSIZ], **argp, **arguments;
     char *dates[NDATES];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index fe3dcebde92c74cd0e7a13bf24b6ed8507cd6bde..cea1ca7c3c1e940cf6faee2ac92c179264567df6 100644 (file)
@@ -115,9 +115,7 @@ main(int argc, char **argv)
     char **arguments;
     char buf[BUFSIZ];
 
     char **arguments;
     char buf[BUFSIZ];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex(argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex(argv[0], '/');
 
     /* read user profile/context */
index 653581684c1c87f82aeafa0a7fbe8f2114e87cad..289f1e6677b23b16b4056b88b4428fbf232bb292 100644 (file)
@@ -51,9 +51,7 @@ main (int argc, char **argv)
     char buf[BUFSIZ], *nfs, **argp, **arguments;
     struct format *fmt;
 
     char buf[BUFSIZ], *nfs, **argp, **arguments;
     struct format *fmt;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index b39d0d527b4a753c5698b9059456f18207f1d9c8..a3a436f4ab2f8fdbd09b81f5bf956d80c4c2a650 100644 (file)
@@ -121,9 +121,7 @@ main (int argc, char **argv)
     int dat[5];
     struct fmt_callbacks cb, *cbp = NULL;
 
     int dat[5];
     struct fmt_callbacks cb, *cbp = NULL;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 9fa298402e0268e1ed9aa18315d9b0d7fa33d06f..a2e6a4a8afdb531174ea3a4773b419d727d6163c 100644 (file)
@@ -101,9 +101,7 @@ main (int argc, char **argv)
     char *cp, *dp, *msg = NULL, *argfolder = NULL;
     char **ap, **argp, buf[BUFSIZ], **arguments;
 
     char *cp, *dp, *msg = NULL, *argfolder = NULL;
     char **ap, **argp, buf[BUFSIZ], **arguments;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 45fb740f771c1276e2a6d151cbaca6794ee2b4f5..9eeb6123d6864d839c73524c31e2bac2d4b78474 100644 (file)
@@ -119,9 +119,7 @@ main (int argc, char **argv)
 
     int buildsw = 0;
 
 
     int buildsw = 0;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 0e527442d8c7a1a30dfbcdb4b93ca91befec3742..3aa5e50fde06fbf4e579d2bdac13a1e5b741c89e 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -197,9 +197,7 @@ main (int argc, char **argv)
     SAVEGROUPPRIVS();
     TRYDROPGROUPPRIVS();
 
     SAVEGROUPPRIVS();
     TRYDROPGROUPPRIVS();
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 2921d2619ccc0bd74f2f9e285ae4e08da05c8ce9..0fc97c45353f3f63d1a7ed039dc8ee8c7994e068 100644 (file)
@@ -42,9 +42,7 @@ main (int argc, char **argv)
     FILE *in, *out;
     int                check;
 
     FILE *in, *out;
     int                check;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
     arguments = getarguments (invo_name, argc, argv, 0);
     argp = arguments;
     invo_name = r1bindex (argv[0], '/');
     arguments = getarguments (invo_name, argc, argv, 0);
     argp = arguments;
index f0f3d7a6b6f1570f39a09bb71ea3f3c9f39f6be2..439ea40703ab080888eeb48e408d25fd126860cd 100644 (file)
@@ -52,9 +52,7 @@ main (int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 18844b56acd95075186c50f0b41fcc3207d29aab..0af3c56ff5dc7b0bea7ebbfe9a2c028d608187f3 100644 (file)
@@ -115,9 +115,7 @@ main (int argc, char **argv)
 
     done=unlink_done;
 
 
     done=unlink_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index fd777699c8fd322f93bfdf2324f84d45132a8cb1..bafd78e261f927bc98d750a2cabe041f8adb5588 100644 (file)
@@ -137,9 +137,7 @@ main (int argc, char **argv) {
 
     done = freects_done;
 
 
     done = freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index af4cdfa8f4f14d50f5f613bcb66ad4f85332e570..d4c5308b39483f243adccefbf101d885a1e65776 100644 (file)
--- a/uip/mhl.c
+++ b/uip/mhl.c
@@ -13,9 +13,7 @@
 int
 main (int argc, char **argv)
 {
 int
 main (int argc, char **argv)
 {
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     done (mhl (argc, argv));
     return 1;
 }
     done (mhl (argc, argv));
     return 1;
 }
index f6208ddb88ffa93dc7052817b102c18b80802fac..7092434895a57f34375cd137495c427dbdbc5440 100644 (file)
@@ -109,9 +109,7 @@ main (int argc, char **argv)
 
     done=freects_done;
 
 
     done=freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index b2db30705c2ae8a388be65696a382b0d15f064e8..06aeee53019ef9fc536cad488a40e1afd82cb4c2 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -169,9 +169,7 @@ main (int argc, char **argv)
 
     done=freects_done;
 
 
     done=freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 3a0a628b6f1e522d387885ee0be5803a8cc72e9d..29b59f4a115f4d511b3aaa9cc2b1be1e231cb3bc 100644 (file)
@@ -32,9 +32,7 @@ main(int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 94e5e0647778f2291fa7a87f844b2d9cef7fec76..f19f9a9d9009a94e7327c96438f505d9c5ab7d9b 100644 (file)
@@ -119,9 +119,7 @@ main (int argc, char **argv)
 
     done=freects_done;
 
 
     done=freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 79f335e55b81e95911139c71b3d1b95205ea412d..fff480aef70f598cdb70673ddb183838f4f7b439 100644 (file)
@@ -108,9 +108,7 @@ main (int argc, char **argv)
 
     done=freects_done;
 
 
     done=freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 49d2a981a08c6c3c6747834f92184eaa83164f4b..092b542a5a234fa3b4dbe1db1ce584318564a8fe 100644 (file)
@@ -104,9 +104,7 @@ main (int argc, char **argv)
 
     done=freects_done;
 
 
     done=freects_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 76bb37d8e7be37831fd20f151c112b4b23f9522c..39a2918d2c9b8eb3078fa35a4578d52bad4a1af7 100644 (file)
@@ -85,9 +85,7 @@ main (int argc, char **argv)
     char **argp, **arguments, *vec[MAXVEC];
     struct passwd *pw;
 
     char **argp, **arguments, *vec[MAXVEC];
     struct passwd *pw;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 2fb2b23092553f72dfc69b3de0c0a5b2d5a542e4..75371bad378e34917e4dace2a46b97942c7fc5e0 100644 (file)
--- a/uip/msh.c
+++ b/uip/msh.c
@@ -203,9 +203,7 @@ main (int argc, char **argv)
     char *cp, *file = NULL, *folder = NULL;
     char **argp, **arguments, buf[BUFSIZ];
 
     char *cp, *file = NULL, *folder = NULL;
     char **argp, **arguments, buf[BUFSIZ];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 74d4d5122a91dcadecf65304eacbf9deaf831f45..59b5b8cfb06b4934cc83def90e55fdef6e523a05 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -422,9 +422,7 @@ main(int argc, char **argv)
     char *unseen;
     struct node *folder;
 
     char *unseen;
     struct node *folder;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex(argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex(argv[0], '/');
 
     /* read user profile/context */
index f070f48d81bfe9cf2730348b44ec643275ae6c07..6f951914187606107803325d247de8dfa4c14569 100644 (file)
@@ -48,9 +48,7 @@ main (int argc, char **argv)
 
     done=mbxclose_done;
 
 
     done=mbxclose_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 5f2802437c1acb4701699b91096302dedc00110d..a915920808340735600c102e25b58c2c0e5271b1 100644 (file)
@@ -68,9 +68,7 @@ main (int argc, char **argv)
 
     done=putzero_done;
 
 
     done=putzero_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 858946354ba2e55a5ec7e0c2242cf1720e3e519e..f6e14fb45d6b24a1685deebed1531a95ada1a148 100644 (file)
@@ -283,9 +283,7 @@ main (int argc, char **argv)
     FILE *in, *out;
     m_getfld_state_t gstate = 0;
 
     FILE *in, *out;
     m_getfld_state_t gstate = 0;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
index afa81f5f15c10f0972979864d1bf1c5e9ca17489..7923e84b316508ccb9fc60fdc43f2212b0c3abfe 100644 (file)
@@ -78,9 +78,7 @@ main (int argc, char **argv)
     char *tmpfil;
     m_getfld_state_t gstate = 0;
 
     char *tmpfil;
     m_getfld_state_t gstate = 0;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 6cc8e27764a3c11bac096440985ccb85dab964ca..8b672cd7ba849994a551939d0c1eca2b63b3783d 100644 (file)
@@ -50,9 +50,7 @@ main (int argc, char **argv)
 
     done=unlink_done;
 
 
     done=unlink_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 4725f26cc94a876066bfaf828a863badbc4f461f..08e21b9cf2e5759ff2f1d70b083e28532561ced9 100644 (file)
@@ -40,9 +40,7 @@ main (int argc, char **argv)
     char *cp, *file = NULL, buf[BUFSIZ];
     char **argp, **arguments;
 
     char *cp, *file = NULL, buf[BUFSIZ];
     char **argp, **arguments;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 2822093e57f851e1b207f82de24512f7effa0093..98f17503a869fd99813cc710ebc0edb3df4d880f 100644 (file)
@@ -56,9 +56,7 @@ main (int argc, char **argv)
 
     done=unlink_done;
 
 
     done=unlink_done;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 356234adf3062a5f68ffb603412a76e233ecc9d2..447c6e402b191b7da739bbad09dd10d0066da523 100644 (file)
@@ -81,9 +81,8 @@ main (int argc, char **argv)
     char *cp, *user, buf[BUFSIZ], tty[BUFSIZ];
     char **argp, **arguments, *vec[MAXARGS];
     struct utmpx *utp;
     char *cp, *user, buf[BUFSIZ], tty[BUFSIZ];
     char **argp, **arguments, *vec[MAXARGS];
     struct utmpx *utp;
-#ifdef LOCALE
+
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 19e12661a1bd16cabd3611a250204abeec15fcb2..776c6fdfdf95c177473dc963a6a71b0f9eb8fcac 100644 (file)
@@ -68,9 +68,7 @@ main (int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 84374569b960aea72bcce6620e5aa0c2c39a6435..d1c8ebfa6ee44d7cc0aa8585655ed539c70de94e 100644 (file)
@@ -129,9 +129,7 @@ main (int argc, char **argv)
 
     int buildsw = 0;
 
 
     int buildsw = 0;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 9e922475c6df63ed8cec4fdb3a1ebb3f661bdc78..735cf774c3e4384171b60fe3b0f6eb06472f84ba 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -37,9 +37,7 @@ main (int argc, char **argv)
     char *cp, *folder = NULL, newfolder[BUFSIZ];
     char buf[BUFSIZ], **argp, **arguments;
 
     char *cp, *folder = NULL, newfolder[BUFSIZ];
     char buf[BUFSIZ], **argp, **arguments;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index ee602b45bc67c09bf1f51a0a261f1809b2e85701..8882b8f623033bbf72c81aeb7cb85a9613575a12 100644 (file)
--- a/uip/rmm.c
+++ b/uip/rmm.c
@@ -37,9 +37,7 @@ main (int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 1f487cdd9a77f1d97e441cc1784f06d07d9850e3..31309220dc247e1b37254fc3ed80f2a71963ed7d 100644 (file)
@@ -52,9 +52,7 @@ main (int argc, char **argv)
     struct msgs *mp;
     FILE *in;
 
     struct msgs *mp;
     FILE *in;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index e7ca7157b26a50055ca72fe38c8ddf6a8798b17d..be5dc79364a024e46317a46bee68ead02100b85d 100644 (file)
@@ -120,9 +120,7 @@ main (int argc, char **argv)
     char *attach = NMH_ATTACH_HEADER;  /* header field name for attachments */
     int attachformat = 1; /* mhbuild format specifier for attachments */
 
     char *attach = NMH_ATTACH_HEADER;  /* header field name for attachments */
     int attachformat = 1; /* mhbuild format specifier for attachments */
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 5a912f6bd1074057e2606a179af728825a5699d1..14d4191120d69e9ff8cbea48d6403bc6a5b6257b 100644 (file)
@@ -61,9 +61,7 @@ main (int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs_array vec = { 0, 0, NULL };
 
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs_array vec = { 0, 0, NULL };
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 8daf6081ac9ccf2c3dd1f2a8c00e3b91e598ef22..8dace05901054cab59838cd82fe2edf01e44c7f5 100644 (file)
@@ -188,9 +188,7 @@ main (int argc, char **argv)
     char mailbox[BUFSIZ], tmpfil[BUFSIZ];
     char **argp, **arguments;
 
     char mailbox[BUFSIZ], tmpfil[BUFSIZ];
     char **argp, **arguments;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (*argv, '/');
 
     /* foil search of user profile/context */
     invo_name = r1bindex (*argv, '/');
 
     /* foil search of user profile/context */
index 72fe0659600f8927c777404cad0dee1ea3b56388..f6a66f16d1f8980bdeb81752253f5c3947c741ff 100644 (file)
@@ -78,9 +78,7 @@ main (int argc, char **argv)
     struct smsg **dlist;
     int checksw = 0;
 
     struct smsg **dlist;
     int checksw = 0;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
index 7c81079da9958735a31835b2aff2218bcc9ceb36..39ccf509382af14bba8d04d7791f227c317d0afe 100644 (file)
@@ -58,9 +58,7 @@ main (int argc, char **argv)
     char *cp, buf[BUFSIZ];
     char **argp, **arguments;
 
     char *cp, buf[BUFSIZ];
     char **argp, **arguments;
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* foil search of user profile/context */
index be50bc92d603e60fbac1ab56c07d981e0ecdc32e..4950514e6bcf0a1857a92b80d83bcc884c86340b 100644 (file)
@@ -13,8 +13,6 @@
 int
 main (int argc, char **argv)
 {
 int
 main (int argc, char **argv)
 {
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     return WhatNow (argc, argv);
 }
     return WhatNow (argc, argv);
 }
index eca3946d8b2f8f979c1dabc6c38083c6fea9a796..8973c76222aca1472a932013719cd02ffeae3a1c 100644 (file)
@@ -63,9 +63,7 @@ main (int argc, char **argv)
     char *msg = NULL, **ap, **argp, backup[BUFSIZ];
     char buf[BUFSIZ], **arguments, *vec[MAXARGS];
 
     char *msg = NULL, **ap, **argp, backup[BUFSIZ];
     char buf[BUFSIZ], **arguments, *vec[MAXARGS];
 
-#ifdef LOCALE
     setlocale(LC_ALL, "");
     setlocale(LC_ALL, "");
-#endif
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */
     invo_name = r1bindex (argv[0], '/');
 
     /* read user profile/context */