From: handa Date: Thu, 7 Sep 2006 07:54:30 +0000 (+0000) Subject: Include . X-Git-Tag: REL-1-3-4~79 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9df60df510f0636a99a1ce2f802ca52eec5a989;p=m17n%2Fm17n-lib.git Include . (m17n_init_core): If the env. var. MDEBUG_OUTPUT_FILE is "stdout", use the stream stdout instead of a file of that name. --- 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; }