summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-12 03:08:30 +0000
committerJim Meyering <jim@meyering.net>1996-03-12 03:08:30 +0000
commit10c96c43ac7f6465fef64f5d46797853bdc0b155 (patch)
treeeaab216688f4d23edb7a1d3439dd833d90757564 /src/touch.c
parent8e8fd5439a1223a0ac7ac9fcd26e3e012204b349 (diff)
downloadcoreutils-10c96c43ac7f6465fef64f5d46797853bdc0b155.tar.xz
(main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/touch.c b/src/touch.c
index 2bb6e8a5f..0f547ce1b 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -274,6 +274,10 @@ main (int argc, char **argv)
int err = 0;
program_name = argv[0];
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
change_times = no_create = use_ref = posix_date = flexible_date = 0;
newtime = (time_t) -1;