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 "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/02 11:21:51 UTC

[jira] [Commented] (LOG4J2-1799) Error determining the current charset

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

ASF GitHub Bot commented on LOG4J2-1799:
----------------------------------------

GitHub user edwgiz opened a pull request:

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

    [LOG4J2-1799]: Error determining the current charset

    https://issues.apache.org/jira/browse/LOG4J2-1799
    
    It would be nice to add this fix to 2.8.1 release.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/edwgiz/logging-log4j2 LOG4J2-1799

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/57.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #57
    
----
commit 84d816ffbfac090de73ff283307b473850899723
Author: Eduard Gizatullin <ed...@gmail.com>
Date:   2017-02-02T11:16:10Z

    [LOG4J2-1799]: Error determining the current charset

----


> 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
>            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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org