[ 
https://issues.apache.org/jira/browse/LOG4J2-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850157#comment-15850157
 ] 

ASF subversion and git services commented on LOG4J2-1799:
---------------------------------------------------------

Commit ac51b5bc451f2de2ab80fb42d1b9782c7c785d29 in logging-log4j2's branch 
refs/heads/master from rpopma
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=ac51b5b ]

LOG4J2-1799 Fixed bug in PropertiesUtil::getCharsetProperty that caused 
UnsupportedCharsetException for ConsoleAppender.

This closes #57
https://github.com/apache/logging-log4j2/pull/57


> Error determining the current charset
> -------------------------------------
>
>                 Key: LOG4J2-1799
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1799
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.8
>            Reporter: Vadim Lotarev
>            Assignee: Remko Popma
>            Priority: Blocker
>
> Switching to the latest release I've immediately got the following error:
> {code}
> Unable to inject fields into builder class for plugin type class 
> org.apache.logging.log4j.core.appender.ConsoleAppender, element Consol
> e. java.nio.charset.UnsupportedCharsetException: sun.stdout.encoding
> {code}
> In the PropertiesUtil I see the following:
> {code:java}
>     public Charset getCharsetProperty(final String name, final Charset 
> defaultValue) {
>         final String prop = getStringProperty(name);
>         return prop == null ? defaultValue : Charset.forName(name);
>     }
> {code}
> Shouldn't {{prop}} be used in {{Charset.forName(name)}} instead of {{name}}?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to