You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "jwmelto (via GitHub)" <gi...@apache.org> on 2023/04/26 21:31:32 UTC

[I] Stray unicode character (logging-log4j2)

jwmelto opened a new issue, #1449:
URL: https://github.com/apache/logging-log4j2/issues/1449

   ## Description
   
   While trying to build log4j from source (provided by a third party), in some context that I could not isolate, the build fails because of a single unicode character [here](https://github.com/apache/logging-log4j2/blob/2.x/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AsyncAppenderEventDispatcher.java#L175).
   
   Given that there is no compelling reason for unicode in this file (at all, much less in a comment), I would suggest it be removed.
   
   ## Configuration
   
   **Version:** [2.17.1]
   
   **Operating system:** [RHEL 8 (ubi8)] (building in a container)
   
   **JDK:** [OpenJDK 1.8.0_372]
   
   ## Logs
   ```
   Building log4j_core_java 2.17.1 with ant
   /usr/src/project/dependencies/log4j_core_java/2.17.1 /usr/src/project/dependencies/log4j_core_java/2.17.1 /usr/src/project
   /usr/src/project/dependencies/log4j_core_java/2.17.1/src/main/java/org/apache/logging/log4j/core/appender/AsyncAppenderEventDispatcher.java:164: error: unmappable character for encoding ASCII
           // ??? ckozak)
              ^
   ```
   
   ## Reproduction
   
   (I was unable to identify a sufficient minimal reproducible test; OTOH, the unicode character is self-evident)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Stray unicode character (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on issue #1449:
URL: https://github.com/apache/logging-log4j2/issues/1449#issuecomment-1524113325

   @jwmelto,
   
   Thank you for your report.
   
   All Log4j source files and resources are encoded using UTF-8. You can find this information in the POM file:
   
   ```
   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   ```
   
   Since you are using Ant instead of Maven, you should use equivalent settings: cf. the `encoding` parameter for the [Javac task](https://ant.apache.org/manual/Tasks/javac.html).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Stray unicode character (logging-log4j2)

Posted by "jwmelto (via GitHub)" <gi...@apache.org>.
jwmelto commented on issue #1449:
URL: https://github.com/apache/logging-log4j2/issues/1449#issuecomment-1524192759

   Thanks. That helped me trace the issue down to an unset LANG environment variable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Stray unicode character (logging-log4j2)

Posted by "jwmelto (via GitHub)" <gi...@apache.org>.
jwmelto closed issue #1449: Stray unicode character
URL: https://github.com/apache/logging-log4j2/issues/1449


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org