On 18/04/12 16:19, Juan Hernandez wrote: > On 04/18/2012 03:12 PM, Doron Fediuck wrote: >> Hi guys, >> I hope someone here stumbled upon it, and has a good idea. >> We have some Java source files with remarks in French, including >> Unicode characters. >> When running simple maven build it works well. >> However, when using rpmbuild, we're failing >> with errors like this: >> >> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project talendRoutines: Compilation failure: Compilation failure: >> [ERROR] /home/xxx/git-repos/ovirt-dwh/rpmtop/BUILD/ovirt-dwh-3.0/data-warehouse/history_etl/etl_sources/talendRoutines/src/main/java/routines/TalendString.java:[274,35] unmappable character for encoding ASCII >> ... >> >> When debugging this, we saw that rpmbuild actually sets LANG=C, >> which disables unicode thus resulting with the error. >> >> 1. Did anyone see this before? >> 2. Any idea how to disable the LANG setting during rpmbuild? >> >> I'm sure Fedora Java dev's should be aware of it. > > I added this option the maven command line for that very reason: > > -Dproject.build.sourceEncoding=ISO-8859-1 > > Hope it helps! > Thanks Juan, Looks like a good workaround. I think we could improve if rpmbuild would be aware of it. Do you think we should open a BZ on rpmbuild? -- /d "Hi, my name is Any Key. Please don't hit me!" -- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel