pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
34a97f5
)
Merge pull request #91 from Pyrohh/fix-locale
author
Michael Göhler
<somebody.here@gmx.de>
Wed, 15 Jul 2015 21:37:17 +0000
(23:37 +0200)
committer
Michael Göhler
<somebody.here@gmx.de>
Wed, 15 Jul 2015 21:37:17 +0000
(23:37 +0200)
Fix setting of locale
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
9920f38
..
9f0acda
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-90,8
+90,9
@@
int main(int argc, char *argv[]) {
}
}
- // set locale to read and display UTF-8 correctly in ncurses
- setlocale(LC_CTYPE, "en_US.UTF8");
+ // set locale to that of the environment, so that ncurses properly renders
+ // UTF-8 characters if the system supports it
+ setlocale(LC_CTYPE, "");
// open file or set input to STDIN
char *file = NULL;