--- np2/x11/trace.c 2004/03/02 16:33:27 1.2 +++ np2/x11/trace.c 2005/02/26 13:32:14 1.4 @@ -5,7 +5,6 @@ int trace_flag = 0; -#ifdef TRACE void trace_init(void) { } @@ -24,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 -