Help with encoding issue needed for libjscience-java (Was: Help needed for libapfloat-java)
Hi,
On Wed, May 16, 2018 at 05:21:44PM +0200, Olivier Sallou wrote:
> missing dependency com.aparpi.aparapi:1.3.4 (for apfloat-aparapi) and
> org.jscience.jscience:4.3.1 (for apfloat-jscience)
I tried to start with the latter and have committed some initial
packaging to. Unfortunately I get lots of errors of this type:
...
org/jscience/physics/amount/AmountFormat.java:186: error: illegal character: '\u00b1'
if (arg0.charAt(arg1.getIndex()) == '±') { // Error specified.
^
org/jscience/physics/amount/AmountFormat.java:186: error: unclosed character literal
if (arg0.charAt(arg1.getIndex()) == '±') { // Error specified.
^
org/jscience/physics/amount/AmountFormat.java:187: error: unclosed character literal
arg1.skip('±', arg0);
^
org/jscience/physics/amount/AmountFormat.java:187: error: illegal character: '\u00b1'
arg1.skip('±', arg0);
^
org/jscience/physics/amount/AmountFormat.java:187: error: unclosed character literal
arg1.skip('±', arg0);
^
org/jscience/physics/amount/AmountFormat.java:187: error: not a statement
arg1.skip('±', arg0);
^
100 errors
I checked just this example file:
$ file org/jscience/physics/amount/AmountFormat.java
org/jscience/physics/amount/AmountFormat.java: HTML document, UTF-8 Unicode text
The affected lines are looking in vim like:
186 if (arg0.charAt(arg1.getIndex()) == '±') { // Error specified.
187 arg1.skip('±', arg0);
Any hint how to fix this?
Kind regards
Andreas.
[1] https://salsa.debian.org/java-team/libjscience-java
--
http://fam-tille.de
Reply to: