diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-06 08:11:30 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-06 08:11:30 +0000 |
commit | 0046c1fe9ca72ed024c8562d51e2b320f7968915 (patch) | |
tree | c8b830705b7060e34484e59738668e449ad60001 /gg.c | |
parent | bb595bff79eda45b10cf0538b93e2ec72c3db495 (diff) |
call setlocale()
Diffstat (limited to 'gg.c')
-rw-r--r-- | gg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <assert.h> #include <ctype.h> #include <errno.h> +#include <locale.h> #include <string.h> enum debug { @@ -351,6 +352,8 @@ main(int argc, char **argv) int ch, code; const char *errstr; + setlocale(LC_CTYPE, ""); + while ((ch = getopt(argc, argv, "23C:d:H:K:NP:T:")) != -1) { switch (ch) { case '2': |