From fc47840a2cb01f291d16dedbcbbaf4970e0f8b94 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 6 May 2010 23:51:31 +0200 Subject: Don't call setlocale if NLS was disabled. --- src/redshift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/redshift.c') diff --git a/src/redshift.c b/src/redshift.c index f58ef56..f95c376 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -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); -- cgit v1.2.3-70-g09d2