You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2023/08/15 08:25:23 UTC
[logging-log4cxx] 01/01: Wind back the optimization in PR #235
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch locale_charset_fix
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit 30dce5f868e4678cdae99b66856c53df4dc58252
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Tue Aug 15 18:23:47 2023 +1000
Wind back the optimization in PR #235
---
src/main/include/log4cxx/helpers/transcoder.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/include/log4cxx/helpers/transcoder.h b/src/main/include/log4cxx/helpers/transcoder.h
index 477bc7c9..ae3e67be 100644
--- a/src/main/include/log4cxx/helpers/transcoder.h
+++ b/src/main/include/log4cxx/helpers/transcoder.h
@@ -192,7 +192,7 @@ class LOG4CXX_EXPORT Transcoder
}
}
-#if LOG4CXX_LOGCHAR_IS_UTF8
+#if LOG4CXX_CHARSET_UTF8 && LOG4CXX_LOGCHAR_IS_UTF8
#define LOG4CXX_ENCODE_CHAR(var, src) \
const std::string& var = src