mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-11 09:18:25 +03:00
add setlocale() call so that localisation of things like number entry
and display will work correctly.
This commit is contained in:
parent
668879d2e1
commit
0ad98cabde
@ -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…
Reference in New Issue
Block a user