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 LogLog char/unicode mismatch on windows
Date Fri, 18 Jan 2008 13:46:14 GMT
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