maven-mvnd icon indicating copy to clipboard operation
maven-mvnd copied to clipboard

encoding confusion in "Total concurrency" output

Open Bananeweizen opened this issue 1 year ago • 2 comments

I run Windows, with my terminal using code page 437 (which I believe is a default for Western European setups). I use Java 21 for all things Maven. The total concurrency output line looks broken for me, because it uses UTF-8 encoding for the character C2A0 (non breaking space) between the number and the percent sign: grafik Switching my terminal to codepage 65001 makes that line render correctly.

While UTF-8 is meanwhile the default for modern Java versions, shouldn't the output be converted to whatever the running terminal uses?

The code creating the output initially is in the smartbuilder over at https://github.com/takari/takari-smart-builder/blob/3cf2c99f4f9caa65e505917ca6864c8a6bb9fa59/src/main/java/io/takari/maven/builder/smart/SmartBuilder.java#L160C38-L160C56

Bananeweizen avatar Aug 26 '24 14:08 Bananeweizen

@Bananeweizen which version of mvnd ? 1.x or 2.x or both ?

gnodet avatar Sep 09 '25 12:09 gnodet

Seems related as well https://bugs.openjdk.org/browse/JDK-8124977

cstamas avatar Sep 09 '25 12:09 cstamas