mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
On Windows, log4cxx always writes to stderr in UTF-16, and we get the logs from C++ to Java by redirecting stderr to our named pipe. Hence the log handler in Java needs to tolerate the log stream it's reading being either UTF-16 (for Windows) or UTF-8 (for other platforms). Fixes elastic/machine-learning-cpp#385 Original commit: elastic/x-pack-elasticsearch@89237d7125