Log4cxx
  1. Log4cxx
  2. LOGCXX-209

A message of type wchar_t* is not beeing written correctly to the internal message buffer (Revision: 592627)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      Windows 2003 R2 / Visual Studio 2005

      Description

      A message (of type wchar_t*) which is dynamically allocated (using malloc) and send to the Logger is not written correctly. This is because it is send to CharMessageBuffer instead of WideMessageBuffer (in MessageBuffer class).

      Workarround:
      cast wchar_t* to const wchar_t* before calling LOG4CXX_INFO (or any other level).

        Activity

        Hide
        Curt Arnold added a comment -

        Committed tests and changes in rev 596412. May need to review further.

        Show
        Curt Arnold added a comment - Committed tests and changes in rev 596412. May need to review further.

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Alexander van Doormalen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development