--- np2/x11/trace.c 2003/10/16 17:59:41 1.1.1.1 +++ np2/x11/trace.c 2005/02/26 13:32:14 1.4 @@ -3,7 +3,8 @@ #include "codecnv.h" -#ifdef TRACE +int trace_flag = 0; + void trace_init(void) { } @@ -22,11 +23,9 @@ void trace_fmt(const char *fmt, ...) { vsprintf(buf, fmt, ap); va_end(ap); #ifndef WIN32 - codecnv_sjis2euc(euc, sizeof(euc), buf, sizeof(buf)); - printf("%s\n", euc); + codecnv_sjistoeuc(euc, sizeof(euc), buf, sizeof(buf)); + fprintf(stderr, "%s\n", euc); #else - printf("%s\n", buf); + fprintf(stderr, "%s\n", buf); #endif } -#endif -