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 "Noel Grandin (JIRA)" <ji...@apache.org> on 2013/03/28 14:57:15 UTC

[jira] [Commented] (LOG4J2-186) log4j configuration fails when reading configuration file with underlying operation system encoding-language settings

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

Noel Grandin commented on LOG4J2-186:
-------------------------------------

Ah yes, the casing problem :-)

The fix for this would to search the LOG4J code for calls to toUpperCase() and toLowerCase(), and to make sure that the ones dealing with non-locale-specific data are doing this:

   toUpperCase(Locale.ENGLISH)
   toLowerCase(Locale.ENGLISH)

For most applications, this means all of the calls, since toUpperCase() and toLowerCase() are almost never used on anything locale-specific.

                
> log4j configuration fails when reading configuration file with underlying operation system encoding-language settings
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-186
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-186
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configurators
>    Affects Versions: 2.0-beta3
>         Environment: os: red-hat server
>            Reporter: fatih guleryuz
>         Attachments: log4j2-config.xml
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> we have red-hat application servers with locale settings set to turkish ("tr", "TR").
> in our log4j-config.xml file we have somme loggers with levels = info.
> when log4j reads this file it converts it to İNFO (with uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.
> i attached the file we use.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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