Bug#1004950: reprotest fails when using kk_KZ.RK1048 locale with java (locale not supported by java)
Fab Stz
fabstz-it at yahoo.fr
Fri Feb 4 07:50:46 GMT 2022
Package: reprotest
Version: 0.7.16
Severity: normal
Dear Maintainer,
I have a CI job that runs reprotest. The project, at some time, makes calls to
java. However this fails/crashes sometimes.
By narrowing things down it always crashes when locale kk_KZ.RK1048 is in use.
By searching further I discovered that kk_KZ.RK1048 locale/charset is not
supported by java [1]. Hence the crash:
$ LC_ALL=kk_KZ.RK1048 java -version
Error occurred during initialization of VM
java.lang.IllegalArgumentException: Null charset name
at java.nio.charset.Charset.lookup(java.base/Charset.java:455)
at java.nio.charset.Charset.defaultCharset(java.base/Charset.java:608)
at java.lang.StringCoding.decode(java.base/StringCoding.java:316)
at java.lang.String.<init>(java.base/String.java:592)
at java.lang.String.<init>(java.base/String.java:614)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1948)
$ LC_ALL=C java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)
Expected behavior? That it works also with call to java? or maybe an option to
disable this locale if java is used?
[1]:
https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html
-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (991, 'stable-updates'), (991, 'stable'), (95, 'testing'), (90,
'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE=fr:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages reprotest depends on:
ii apt-utils 2.2.4
pn diffoscope <none>
ii libdpkg-perl 1.20.9
ii procps 2:3.3.17-5
ii python3 3.9.2-3
ii python3-debian 0.1.39
ii python3-distro 1.5.0-1
ii python3-pkg-resources 52.0.0-4
pn python3-rstr <none>
Versions of packages reprotest recommends:
pn diffoscope <none>
pn diffoscope-minimal <none>
pn disorderfs <none>
pn faketime <none>
pn locales-all <none>
ii sudo 1.9.5p2-3
Versions of packages reprotest suggests:
ii autodep8 0.24
pn qemu-system <none>
ii qemu-utils 1:5.2+dfsg-11+deb11u1
More information about the Reproducible-builds
mailing list