From: Francois Fleuret Date: Thu, 12 Mar 2009 21:45:32 +0000 (+0100) Subject: Automatic commit X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=99f32dbf95f84e3890aae1c2075afcc4976d97a1;p=selector.git Automatic commit --- diff --git a/selector.cc b/selector.cc index c42057b..bec4ed3 100644 --- a/selector.cc +++ b/selector.cc @@ -306,6 +306,8 @@ int main(int argc, char **argv) { int no_blink = 0; int color_theme = 0; + setlocale(LC_ALL, ""); + char input_filename[buffer_size], output_filename[buffer_size]; strcpy(input_filename, ""); strcpy(output_filename, "/tmp/selector.out"); @@ -513,7 +515,7 @@ int main(int argc, char **argv) { if (fd >= 0) { // Save current port settings tcgetattr(fd,&oldtio); - bzero(&newtio, sizeof(newtio)); + memset(&newtio, 0, sizeof(newtio)); // Set input mode (non-canonical, *no echo*,...) tcflush(fd, TCIFLUSH); tcsetattr(fd,TCSANOW, &newtio);