Bug#338938: kaffe: LANG environement variable doesn't set default
charset
Jean-Michel Vourgère
bugrepport_debian_200511 at nirgal.com
Sun Nov 13 22:58:35 UTC 2005
Package: kaffe
Version: 2:1.1.6-3
Severity: normal
Tags: patch
I have LANG=en_US.UTF-8 and java does print:
GetEnv.getEnv("LANG") = en_US.UTF-8
however default charset is incorrect
new java.io.OutputStreamWriter(System.out)).getEncoding() = ISO8859_1
Workaround: Add "-Dfile.encoding=UTF-8" in JVM start up
(23:16:09) dalibor: see the source code in libraries/clib/native/gnu_classpath_VMSystemProperties.c
(23:16:31) dalibor: function Java_gnu_classpath_VMSystemProperties_getLocale
(23:16:35) dalibor: change the "" to NULL
(23:35:57) dalibor: you can file a big report in debian with a small test case, I'll check in a fix into kaffe
(23:36:17) dalibor: so that then a small patch can be applied to debian until the next release.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages kaffe depends on:
ii kaffe-pthreads 2:1.1.6-3 A POSIX threads enabled version of
kaffe recommends no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list