diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-06-11 15:38:14 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-06-12 18:49:14 +0200 |
commit | 3b502901c021cb0eda46ea44bbf2d73e6b6f7265 (patch) | |
tree | 2d9aee19810558685c8a71888753468ebe24df08 /util | |
parent | a22cd7394b05dc3d70654fbf4d7bc4bfbc7401b6 (diff) | |
download | wget-3b502901c021cb0eda46ea44bbf2d73e6b6f7265.tar.gz |
Ensure main calls bindtextdomain
Diffstat (limited to 'util')
-rw-r--r-- | util/trunc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/trunc.c b/util/trunc.c index a5f1dcb0..94285077 100644 --- a/util/trunc.c +++ b/util/trunc.c @@ -76,6 +76,14 @@ main (int argc, char *argv[]) int option; int fd; +#ifdef ENABLE_NLS + /* Set the current locale. */ + setlocale (LC_ALL, ""); + /* Set the text message domain. */ + bindtextdomain ("wget", LOCALEDIR); + textdomain ("wget"); +#endif /* ENABLE_NLS */ + /* Parse options. */ while ((option = getopt (argc, argv, "c")) != -1) { |