diff options
author | Andreas Jaeger <aj@suse.de> | 2013-05-10 08:06:21 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2013-05-10 08:07:14 +0200 |
commit | a3375d299007c7d38de9427cd38ca932b052b048 (patch) | |
tree | f5bf89e309c25b34e755a1ebfc57653987ce1ef2 /sunrpc | |
parent | 36129722342bed6b3f3729b922c2e513c404ba61 (diff) | |
download | glibc-a3375d299007c7d38de9427cd38ca932b052b048.tar glibc-a3375d299007c7d38de9427cd38ca932b052b048.tar.gz glibc-a3375d299007c7d38de9427cd38ca932b052b048.tar.bz2 glibc-a3375d299007c7d38de9427cd38ca932b052b048.zip |
Localize rpcgen
[BZ #15395]
* sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
localization.
Include <locale.h>.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/rpc_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index 1477b43a7d..d03ec991ea 100644 --- a/sunrpc/rpc_main.c +++ b/sunrpc/rpc_main.c @@ -39,6 +39,7 @@ #include <string.h> #include <unistd.h> #include <libintl.h> +#include <locale.h> #include <ctype.h> #include <sys/types.h> #include <sys/param.h> @@ -173,6 +174,9 @@ main (int argc, const char *argv[]) { struct commandline cmd; + setlocale (LC_ALL, ""); + textdomain (_libc_intl_domainname); + (void) memset ((char *) &cmd, 0, sizeof (struct commandline)); clear_args (); if (!parseargs (argc, argv, &cmd)) |