[fedora-java] Maven error log due to UTF8 during make rpm

Colin Walters walters at redhat.com
Wed Apr 18 13:25:24 UTC 2012


----- Original Message -----
>
> When debugging this, we saw that rpmbuild actually sets LANG=C,
> which disables unicode thus resulting with the error.
> 
> 2. Any idea how to disable the LANG setting during rpmbuild?

This is a tricky issue; from what I can see of a quick read of
the JLS, it says that source files should be Unicode; but that's
not useful here because it doesn't seem to specify the encoding.

Anyways, if the OpenJDK compiler derives "ASCII" from LANG=C
that's wrong. By default, it should assume input files are UTF-8.

I guess the Python people made the same braindamaged mistake though =/

At worst, since Fedora has a policy that files in general should
be UTF-8 encoded, we could carry a javac patch that assumes UTF-8.

Some more information here:
http://stackoverflow.com/questions/1726174/how-to-compile-a-java-source-file-which-is-encoded-as-utf-8



More information about the java-devel mailing list