aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2001-04-08 17:05:05 +0000
committerPhil Blundell <philb@gnu.org>2001-04-08 17:05:05 +0000
commitd07aec815238096ca4624aeb5384b44685c5dafe (patch)
treead0c71af914bd3dafdcda92fe35c5f1959b9ec7a /iptunnel.c
parentFix reporting of IPv6 multicast addresses. (diff)
downloadnet-tools-d07aec815238096ca4624aeb5384b44685c5dafe.tar.gz
net-tools-d07aec815238096ca4624aeb5384b44685c5dafe.tar.bz2
net-tools-d07aec815238096ca4624aeb5384b44685c5dafe.zip
Use setlocale at program initialisation.
Patch from Arnaldo Carvalho de Melo.
Diffstat (limited to 'iptunnel.c')
-rw-r--r--iptunnel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iptunnel.c b/iptunnel.c
index 979c1f8..4943d83 100644
--- a/iptunnel.c
+++ b/iptunnel.c
@@ -14,6 +14,7 @@
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
* Rani Assaf <rani@magic.metawire.com> 980930: do not allow key for ipip/sit
* Bernd Eckenfels 990715: add linux/types.h (not clean but solves missing __u16
+ * Arnaldo Carvalho de Melo 20010404: use setlocale
*/
#include <stdio.h>
@@ -581,6 +582,7 @@ int main(int argc, char **argv)
char *basename;
#if I18N
+ setlocale (LC_ALL, "");
bindtextdomain("net-tools", "/usr/share/locale");
textdomain("net-tools");
#endif