]> source.dussan.org Git - tigervnc.git/commitdiff
Set default file encoding to prevent java compiler warnings
authorBrian P. Hinz <bphinz@users.sf.net>
Thu, 6 Nov 2014 02:00:31 +0000 (21:00 -0500)
committerBrian P. Hinz <bphinz@users.sf.net>
Thu, 6 Nov 2014 02:00:31 +0000 (21:00 -0500)
* The keymap files have UTF-8 characters embedded in comments.
  javac complains about this unless the default encoding is set.

contrib/packages/rpm/el5/SPECS/tigervnc.spec
contrib/packages/rpm/el6/SPECS/tigervnc.spec
contrib/packages/rpm/sle11/SPECS/tigervnc.spec

index b2ff9178bfe817f2daa08d2f9cae9bfa5507bd3f..e3656d4459b100e5206e0ac2b73bc52aeea96921 100644 (file)
@@ -1128,7 +1128,7 @@ popd
 # Build Java applet
 pushd java
 %{cmake28} .
-LANG=C make
+JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" make
 popd
 
 %install
index 034467a3d39bf0925b58a005f110afe1f947ea32..66daf8f65d5e6be28cb97ae97a49fd22dfef47df 100644 (file)
@@ -219,7 +219,7 @@ popd
 # Build Java applet
 pushd java
 %{cmake28} .
-make
+JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" make
 popd
 
 %install
index ddf9310143fb1b24e215af463003e19a0ac55e31..e601d71705bfbc9e3c8ca8267137ec7aca4e4de2 100644 (file)
@@ -324,7 +324,7 @@ popd
 # Build java client
 pushd java
 cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
-make %{?_smp_mflags}
+JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" make %{?_smp_mflags}
 popd
 
 %install