logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Macheiner" <Christoph.Machei...@update.com>
Subject RE: LogLog char/unicode mismatch on windows
Date Fri, 18 Jan 2008 14:12:52 GMT
also, LogLog::emit() does not append an end-of-line anymore since the last change (to SystemErrWriter).
is this intended?

thanks, christoph 

-----Original Message-----
From: Christoph Macheiner [mailto:Christoph.Macheiner@update.com] 
Sent: Freitag, 18. Jänner 2008 14:46
To: Log4CXX User
Subject: LogLog char/unicode mismatch on windows

in log4cxx_private.hw revision 606089, the "#define LOG4CXX_FORCE_WIDE_CONSOLE 1" was removed.
now, if this is not defined,
SystemErrWriter::write() uses fwide() to determine whether to write wchar or char and fortunately,
fwide() happens to be unimplemented in the msvc libraries. i think in this case, LOG4CXX_FORCE_WIDE_CONSOLE
should be 1 on a UNICODE build, and 0 otherwise? (or maybe there is another way to better
handle this). for now, i just defined it again in log4cxx_private.h.

(yes, latest svn head and log4cxx(_private).h rebuilt from *.hw)

thanks, christoph

Mime
View raw message