aboutsummaryrefslogtreecommitdiff
path: root/gg.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-06 08:11:30 +0000
committerOmar Polo <op@omarpolo.com>2023-06-06 08:11:30 +0000
commit0046c1fe9ca72ed024c8562d51e2b320f7968915 (patch)
treec8b830705b7060e34484e59738668e449ad60001 /gg.c
parentbb595bff79eda45b10cf0538b93e2ec72c3db495 (diff)
call setlocale()
Diffstat (limited to 'gg.c')
-rw-r--r--gg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gg.c b/gg.c
index e650737..984b328 100644
--- a/gg.c
+++ b/gg.c
@@ -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':