You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/08/19 22:38:31 UTC

DO NOT REPLY [Bug 36282] New: - ConsoleAppender ignores encoding set with setEncoding()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36282>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36282

           Summary: ConsoleAppender ignores encoding set with setEncoding()
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: bp@thinkpink.com


ConsoleAppender, as a subclass of WriterAppender, should behave correctly when
its encoding is set to something other than the system default.

Since the ConsoleAppender is already wrapping System.out and System.err in an
OutputStreamWriter it's a simple matter to create an OutputStreamWriter with the
desired encoding.

One could argue that System.{out,err} have system-defined encodings and that
those should stand. But it seems equally important, if not more so, to be able
to write software that has predictable behavior in the face of varying system
defaults.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org