summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-09 20:19:13 +0000
committerJim Meyering <jim@meyering.net>1996-03-09 20:19:13 +0000
commit715765a5487d2e37c4d48e216e6958883db6a41f (patch)
tree05d3a6daffcd9629e21fb275fe387e06dc3ba440 /src/csplit.c
parentde0fdbb080e3902f2a6d4ee795b6322565df424b (diff)
downloadcoreutils-715765a5487d2e37c4d48e216e6958883db6a41f.tar.xz
(main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/csplit.c b/src/csplit.c
index b89a36925..508eadc77 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1404,9 +1404,13 @@ main (int argc, char **argv)
unsigned long val;
#ifdef SA_INTERRUPT
struct sigaction oldact, newact;
-#endif /* SA_INTERRUPT */
+#endif
program_name = argv[0];
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
global_argv = argv;
controls = NULL;
control_used = 0;
@@ -1434,7 +1438,7 @@ main (int argc, char **argv)
sigaction (SIGTERM, NULL, &oldact);
if (oldact.sa_handler != SIG_IGN)
sigaction (SIGTERM, &newact, NULL);
-#else
+#else /* not SA_INTERRUPT */
if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
signal (SIGHUP, interrupt_handler);
if (signal (SIGINT, SIG_IGN) != SIG_IGN)
@@ -1443,7 +1447,7 @@ main (int argc, char **argv)
signal (SIGQUIT, interrupt_handler);
if (signal (SIGTERM, SIG_IGN) != SIG_IGN)
signal (SIGTERM, interrupt_handler);
-#endif
+#endif /* not SA_INTERRUPT */
while ((optc = getopt_long (argc, argv, "f:b:kn:sqz", longopts, (int *) 0))
!= EOF)