Don't call setlocale if NLS was disabled.
This commit is contained in:
+1
-1
@@ -253,11 +253,11 @@ main(int argc, char *argv[])
|
||||
{
|
||||
int r;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
/* Init locale */
|
||||
setlocale(LC_CTYPE, "");
|
||||
setlocale(LC_MESSAGES, "");
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
/* Internationalisation */
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
|
||||
Reference in New Issue
Block a user