summaryrefslogtreecommitdiff
path: root/src/lexgrog_test.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-12-15 13:48:32 +0000
committerColin Watson <cjwatson@debian.org>2009-12-15 13:48:32 +0000
commitceed602920dc7269367b701e02372e028de843fc (patch)
tree0eafd4a407f4be10661138f5cae4a17adf119c42 /src/lexgrog_test.c
parent715314f16850af0c9a45ad072df9fda10c324a7a (diff)
* lib/debug.c (init_debug): New function: check for MAN_DEBUG=1 in
the environment. * include/manconfig.h.in (init_debug): Add prototype. * src/accessdb.c (main), src/catman.c (main), src/globbing_test.c (main), src/lexgrog_test.c (main), src/man.c (main), src/manconv_main.c (main), src/mandb.c (main), src/manpath.c (main), src/whatis.c (main), src/zsoelim_main.c (main): Call init_debug. * NEWS: Document this.
Diffstat (limited to 'src/lexgrog_test.c')
-rw-r--r--src/lexgrog_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexgrog_test.c b/src/lexgrog_test.c
index 577f7bdf..11f505a0 100644
--- a/src/lexgrog_test.c
+++ b/src/lexgrog_test.c
@@ -134,6 +134,8 @@ int main (int argc, char **argv)
program_name = base_name (argv[0]);
+ init_debug ();
+
if (!setlocale (LC_ALL, "") && !getenv ("MAN_NO_LOCALE_WARNING"))
/* Obviously can't translate this. */
error (0, 0, "can't set the locale; make sure $LC_* and $LANG "