Fixed an infinite loop in "Transcoder::encode" (#34)

Fixed an infinite loop in "Transcoder::encode(const LogString&, std::wstring&)" by appending LOSSCHAR. The most likely alternative would be to throw on any invalid input instead, but that's not the case right now and LOSSCHAR used in other places as well.

https://issues.apache.org/jira/browse/LOGCXX-398

Co-authored-by: Robert Middleton <robert.middleton@rm5248.com>
3 files changed
tree: 141fffbab1ca502d76e6ca7bd7a42c9bdf3da81b
  1. src/
  2. .astylerc
  3. .editorconfig
  4. .gitignore
  5. autogen.sh
  6. build.xml
  7. CMakeLists.txt
  8. configure.ac
  9. configure.bat
  10. doap_log4cxx.rdf
  11. INSTALL
  12. KEYS
  13. liblog4cxx.pc.in
  14. LICENSE
  15. Makefile.am
  16. NOTICE
  17. pom.xml
  18. README.md
  19. release_perform.sh
  20. release_prepare.sh
  21. release_purge.sh
README.md

Issues and pull requests

Issues are maintained in the Apache JIRA by default, so before posting pull requests, please have a look there if an associated issue with your problem/feature/... exists already. If not, it‘s generally OK to directly create pull requests IF code is already available, but please be somewhat verbose: Provide some background information about what actual problem the PR solves, why this needs to be solved etc. Don’t just provide commits about the fact that you changed something.

If any discussion is needed before actually having any code, simply create a ticket in JIRA or send a message to the corresponding mailing list. Thanks!