aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-11-28 08:42:50 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-11-28 08:42:50 +0000
commitf0d9ad0bb722b5efe31a3e944beefb44977c745a (patch)
tree095bb949214fbf3a53fc5e8ef97a7e51bba5753c
parent85731b4c39e1849cfc3356b8615601591653475d (diff)
downloadcpio-f0d9ad0bb722b5efe31a3e944beefb44977c745a.tar.gz
cpio-f0d9ad0bb722b5efe31a3e944beefb44977c745a.tar.bz2
(main): Call setlocale. Thanks Mitsuru Chinen <mchinen@yamato.ibm.com> for the patch.
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index 86c49d7..ae11446 100644
--- a/main.c
+++ b/main.c
@@ -27,6 +27,11 @@
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
+
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
#include "filetypes.h"
#include "system.h"
#include "cpiohdr.h"
@@ -514,6 +519,10 @@ main (argc, argv)
int argc;
char *argv[];
{
+#ifdef HAVE_LOCALE_H
+ setlocale (LC_ALL, "");
+#endif
+
program_name = argv[0];
umask (0);

Return to:

Send suggestions and report system problems to the System administrator.