diff --git a/src/ChangeLog b/src/ChangeLog
index 051927e4..c5394c77 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2014-06-16  Darshit Shah  <darnir@gmail.com>
+
+	* test.c: Include locale.h header for gettext.
+
 2014-06-16  Giuseppe Scrivano  <gscrivan@redhat.com>
 
 	* http.c (gethttp): Set "Connection: Keep-Alive" with keep-alive
diff --git a/src/test.c b/src/test.c
index 6bececc7..008126b8 100644
--- a/src/test.c
+++ b/src/test.c
@@ -31,6 +31,9 @@ as that of the covered work.  */
 #include "wget.h"
 
 #include <stdio.h>
+#ifdef ENABLE_NLS
+# include <locale.h>
+#endif
 
 #include "test.h"