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

        Alexander van Doormalen created issue -
        Alexander van Doormalen made changes -
        Field Original Value New Value
        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).

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

        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).

        Curt Arnold made changes -
        Fix Version/s 0.10.0 [ 10782 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]

          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