--- ngrep.c +++ ngrep.c @@ -77,6 +77,8 @@ #include #endif +#include + #if defined(LINUX) #ifndef __FAVOR_BSD # define __FAVOR_BSD @@ -201,6 +203,8 @@ int main(int argc, char **argv) { signal(SIGWINCH, update_windowsize); #endif + setlocale(LC_ALL, ""); + while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMs:n:c:d:A:I:O:S:P:F:W:")) != EOF) { switch (c) { case 'W': {