From a9df60df510f0636a99a1ce2f802ca52eec5a989 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 7 Sep 2006 07:54:30 +0000 Subject: [PATCH] Include . (m17n_init_core): If the env. var. MDEBUG_OUTPUT_FILE is "stdout", use the stream stdout instead of a file of that name. --- src/m17n-core.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/m17n-core.c b/src/m17n-core.c index b6e60e8..c400a83 100644 --- a/src/m17n-core.c +++ b/src/m17n-core.c @@ -366,6 +366,7 @@ #include #include #include +#include #include #include #include @@ -534,7 +535,12 @@ m17n_init_core (void) mdebug__output = NULL; if (env_value) - mdebug__output = fopen (env_value, "a"); + { + if (strcmp (env_value, "stdout")) + mdebug__output = stdout; + else + mdebug__output = fopen (env_value, "a"); + } if (! mdebug__output) mdebug__output = stderr; } -- 1.7.10.4