aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/gprof.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 15722f4..7140813 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-30 Matthias Kurz <mk@baerlap.north.de>
+
+ * gprof.c (main):Only invoke bindtextdomain() and textdomain() if
+ ENABLE_NLS is defined.
+
2005-05-09 Nick Clifton <nickc@redhat.com>
* Update the address and phone number of the FSF organization in
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 2814309..0430df7 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -189,8 +189,10 @@ main (int argc, char **argv)
#if defined (HAVE_SETLOCALE)
setlocale (LC_CTYPE, "");
#endif
+#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+#endif
whoami = argv[0];
xmalloc_set_program_name (whoami);