diff options
Diffstat (limited to 'term-utils/mesg.c')
-rw-r--r-- | term-utils/mesg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/term-utils/mesg.c b/term-utils/mesg.c index 097fb9c93..12e4e0e8c 100644 --- a/term-utils/mesg.c +++ b/term-utils/mesg.c @@ -88,11 +88,6 @@ int main(int argc, char *argv[]) char *tty; int ch, verbose = FALSE; - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - atexit(close_stdout); - static const struct option longopts[] = { { "verbose", no_argument, 0, 'v' }, { "version", no_argument, 0, 'V' }, @@ -100,6 +95,11 @@ int main(int argc, char *argv[]) { NULL, 0, 0, 0 } }; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + atexit(close_stdout); + while ((ch = getopt_long(argc, argv, "vVh", longopts, NULL)) != -1) switch (ch) { case 'v': |