aboutsummaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2013-05-10 08:06:21 +0200
committerAndreas Jaeger <aj@suse.de>2013-05-10 08:07:14 +0200
commita3375d299007c7d38de9427cd38ca932b052b048 (patch)
treef5bf89e309c25b34e755a1ebfc57653987ce1ef2 /sunrpc
parent36129722342bed6b3f3729b922c2e513c404ba61 (diff)
downloadglibc-a3375d299007c7d38de9427cd38ca932b052b048.zip
glibc-a3375d299007c7d38de9427cd38ca932b052b048.tar.gz
glibc-a3375d299007c7d38de9427cd38ca932b052b048.tar.bz2
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c
index 1477b43..d03ec99 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))