mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
add setlocale() call so that localisation of things like number entry
and display will work correctly.
This commit is contained in:
parent
e3528bcda7
commit
f06bdc437d
@ -22,6 +22,7 @@
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef READLINE_SUPPORT
|
||||
#include <readline/readline.h>
|
||||
@ -117,6 +118,7 @@ int main(int argc, char **argv)
|
||||
char *namebase, *base;
|
||||
int ret, alias = 0;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
if (!init())
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user