Don't call setlocale if NLS was disabled.

This commit is contained in:
Jon Lund Steffensen
2010-05-06 23:51:31 +02:00
parent 9c2012b85e
commit fc47840a2c
+1 -1
View File
@@ -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);