Return to locale.c CVS log | Up to [local] / src / usr.bin / locale |
version 1.9, 2015/08/14 14:31:49 | version 1.10, 2015/11/19 06:07:16 | ||
---|---|---|---|
|
|
||
#include <string.h> | #include <string.h> | ||
#include <locale.h> | #include <locale.h> | ||
#include <unistd.h> | #include <unistd.h> | ||
#include <err.h> | |||
extern char *__progname; | extern char *__progname; | ||
|
|
||
int opt, aflag = 0, mflag = 0; | int opt, aflag = 0, mflag = 0; | ||
setlocale(LC_ALL, ""); | setlocale(LC_ALL, ""); | ||
if (pledge("stdio rpath", NULL) == -1) | |||
err(1, "pledge"); | |||
if (argc == 1) { | if (argc == 1) { | ||
show_current_locale(); | show_current_locale(); |