aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2010-05-06 23:51:31 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2010-05-06 23:51:31 +0200
commitfc47840a2cb01f291d16dedbcbbaf4970e0f8b94 (patch)
tree13ee8006887679aacc5e146dea1329c5ec5921b6
parentDisable signal support if sys/signal.h was not found. (diff)
downloadredshift-ng-fc47840a2cb01f291d16dedbcbbaf4970e0f8b94.tar.gz
redshift-ng-fc47840a2cb01f291d16dedbcbbaf4970e0f8b94.tar.bz2
redshift-ng-fc47840a2cb01f291d16dedbcbbaf4970e0f8b94.tar.xz
Don't call setlocale if NLS was disabled.
-rw-r--r--src/redshift.c2
1 files changed, 1 insertions, 1 deletions
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);