projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a09b69f
)
Automatic commit
author
Francois Fleuret
<francois@fleuret.org>
Thu, 12 Mar 2009 21:45:32 +0000
(22:45 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 12 Mar 2009 21:45:32 +0000
(22:45 +0100)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
c42057b
..
bec4ed3
100644
(file)
--- 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);