On 18/04/12 16:25, Colin Walters wrote:
----- 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-f...
Thanks Collin,
It actually makes sense since Java works with Unicode by design.
Please cc me on the javac bz.
--
/d
"Ford," he said, "you're turning into a penguin. Stop it."
--Douglas Adams, The Hitchhiker's Guide to the Galaxy