set locale
This commit is contained in:
parent
21046b2bd3
commit
1b848e77e5
@ -13,6 +13,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
#include <errno.h>
|
||||
#include <locale.h>
|
||||
|
||||
const int digit_bitmaps[10][5][3] = {
|
||||
{{1,1,1},{1,0,1},{1,0,1},{1,0,1},{1,1,1}}, // 0
|
||||
@ -563,6 +564,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
Bat_state bat_state = {0, 1000, 0};
|
||||
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
while ((option = getopt(argc, argv, "d:hfcur")) !=-1) {
|
||||
switch (option) {
|
||||
case 'd' :
|
||||
|
||||
Loading…
Reference in New Issue
Block a user