apache-hb opened a new issue, #643: URL: https://github.com/apache/logging-log4cxx/issues/643
Logging a string that contains an embedded nul byte to the console truncates the remaining message: ```cpp LOG4CXX_INFO(kLogger, "Hello\0World!"); LOG4CXX_INFO(kLogger, "Hello World!"); // [2026-05-03T13:05:42] root INFO - Hello[2026-05-03T13:05:42] root INFO - Hello World ``` Ideally the nul byte should either be skipped or written out as an `\0` escaped string. I belive this is due to [systemoutwriter.cpp](https://github.com/apache/logging-log4cxx/blob/master/src/main/cpp/systemoutwriter.cpp#L77-L78) which uses `fputs` rather than a print method thats aware of nul bytes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
