[Bug 2112420] Re: openjdk-17-crac and openjdk-21-crac fail to build from source due to invalid utf-8 character
Pushkar Kulkarni
2112420 at bugs.launchpad.net
Wed Jun 4 05:55:20 UTC 2025
Steps to reproduce:
1. apt install rust-coreutils
2. Create a file named clean.sh with the following contents
---
PROPERTIES_FILE="$1"
SORT_TYPE="${2:-default}"
case "$SORT_TYPE" in
"rust")
SORT_CMD="/usr/lib/cargo/bin/coreutils/sort"
;;
"gnu")
SORT_CMD="/usr/bin/sort"
;;
"default"|*)
SORT_CMD="sort"
;;
esac
cat $PROPERTIES_FILE | \
sed -e 's/\\u00E4/\xE4/g' \
-e 's/\\u00FC/\xFC/g' | \
$SORT_CMD
---
3. Create a file (say test_de.properties) with this content:
---
INVALID_NODE_TYPE_ERR = Container eines Grenzwertes eines Bereichs wird entweder auf einen Knoten mit einem ung\u00FCltigen Typ oder auf einen Knoten mit einem Vorg\u00E4nge eines ung\u00FCltigen Typs gesetzt.
---
4. Running the script with gnu- and rust- coreutils
--- Passes with gnu-coreutils ---
$ ./clean.sh test_de.properties gnu
INVALID_NODE_TYPE_ERR = Container eines Grenzwertes eines Bereichs wird entweder auf einen Knoten mit einem ung�ltigen Typ oder auf einen Knoten mit einem Vorg�nge eines ung�ltigen Typs gesetzt.
---
--- Fails with rust-coreutils ---
$ ./clean.sh test_de.properties rust
/usr/lib/cargo/bin/coreutils/sort: invalid utf-8 sequence of 1 bytes from index 111
---
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2112420
Title:
openjdk-17-crac and openjdk-21-crac fail to build from source due to
invalid utf-8 character
Status in openjdk-17-crac package in Ubuntu:
New
Status in openjdk-21-crac package in Ubuntu:
New
Status in rust-coreutils package in Ubuntu:
New
Bug description:
----
Cleaning jdk/modules/java.xml/com/sun/org/apache/xerces/internal/impl/msg/DOMMessages_es.properties
/usr/bin/sort: invalid utf-8 sequence of 1 bytes from index 36
gmake[4]: *** [CompileJavaModules.gmk:96: /<<PKGBUILDDIR>>/build/jdk/modules/java.xml/com/sun/org/apache/xerces/internal/impl/msg/DOMMessages_de.properties] Error 2
gmake[4]: *** Deleting file '/<<PKGBUILDDIR>>/build/jdk/modules/java.xml/com/sun/org/apache/xerces/internal/impl/msg/DOMMessages_de.properties'
gmake[3]: *** [make/Main.gmk:193: java.xml-java] Error 2
-----
[1] https://launchpadlibrarian.net/797384388/buildlog_ubuntu-questing-amd64.openjdk-17-crac_17.0.15+6-0ubuntu1_BUILDING.txt.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-17-crac/+bug/2112420/+subscriptions
More information about the foundations-bugs
mailing list