diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-11-28 08:42:50 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-11-28 08:42:50 +0000 |
commit | f0d9ad0bb722b5efe31a3e944beefb44977c745a (patch) | |
tree | 095bb949214fbf3a53fc5e8ef97a7e51bba5753c | |
parent | 85731b4c39e1849cfc3356b8615601591653475d (diff) | |
download | cpio-f0d9ad0bb722b5efe31a3e944beefb44977c745a.tar.gz cpio-f0d9ad0bb722b5efe31a3e944beefb44977c745a.tar.bz2 |
(main): Call setlocale. Thanks Mitsuru Chinen <mchinen@yamato.ibm.com> for the patch.
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |