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
Bugs, which is subscribed to 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-17-crac/+bug/2112420/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs