Package: libjansi-java Version: 2.4.0-1 Severity: normal X-Debbugs-Cc: pitxy...@gmail.com
Dear maintainer, I'm running commands that use the `mvn` and capture the output coming from it. More specifically, I'm catching the version of a Maven project with a command like the following: mvn --batch-mode --quiet -DforceStdout help:evaluate -Dexpression="project.version" Up until Debian Bullseye, the output from the command above was a single string with only the version, as intended. For example: "1.0.0-SNAPSHOT". After upgrading to Debian Bookworm, the `mvn` command now outputs escape characters, regardless of the flags passed to it. The example above has now become: "ESC[0m1.0.0-SNAPSHOTESC[0m". I tested with the upstream Maven package of the same version, and could narrow down the problem as coming from the libjansi-java jar. If I downgrade it back to the Debian-packaged version 2.4.0-1, the old behaviour is restored. This change seems to have been due to this commit: https://salsa.debian.org/java- team/jansi/-/commit/7f186cd4fc22308d7769db8eeeca26b560b81b1a You can probably reproduce this very simply with the following: (running `mvn` anywhere should work - it doesn't have to have a Maven project and the error message is irrelevant to reproduce what we need) mvn --batch-mode --quiet | less * With libjansi-java 2.4.0-2, escape characters are seen in the output, like so: ESC[0m[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE (...) [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException ESC[0m (END) * With libjansi-java 2.4.0-1 (downloaded from snapshot.debian.org), escape characters are not seen in the output: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE (...) [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException (END) Thank you and best regards, Luís Picciochi Oliveira -- System Information: Debian Release: 12.0 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.4.0-0-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled