Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.0
-
None
-
Gentoo Linux, compilation environment has unset LC_ALL, LANG and LANGUAGE variables to force native (English) error messages during compilations
Description
Compilation of FOP terminates with load of "error: unmappable character for encoding ASCII" caused by UTF-8 comments in the enironment with non-UTF8 locale.
My standard env for compiling (/etc/portage/bashrc) unsets LC_ALL, LANG and LANGUAGE variables, forcing a special POSIX locale (which is more or less equiv to en_US.iso8859-1). This is intentional, as my daily locale is pl_PL.utf8 and thus causes Polish error messages during compilation - which is very annoying when you need to report a bug on non-Polish bugtracker.
As FOP is the only Java package bailing out due to this problem on my system, I guess other packages either don't use UTF8 comments or set some flag for Java compiler to ignore them.
Compilation completes with en_US.utf8 locale, yet some systems (eg OpenBSD) still don't widely use UTF8.