You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Konstantin Berlin (JIRA)" <ji...@apache.org> on 2012/11/21 16:43:58 UTC

[jira] [Created] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad charecters

Konstantin Berlin created MATH-907:
--------------------------------------

             Summary: org.apache.commons.math3.special.Gamma comments have bad charecters
                 Key: MATH-907
                 URL: https://issues.apache.org/jira/browse/MATH-907
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.1
         Environment: OS 10.8.2, Java 7
            Reporter: Konstantin Berlin


    [javac] /Users/kberlin/Dropbox/Projects/math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
    [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Sébastien Brisard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502741#comment-13502741 ] 

Sébastien Brisard commented on MATH-907:
----------------------------------------

For some reason, I can't reproduce the problem on my computer (the whole system must be set to utf-8 by default).
Could someone try to add the following line to {{build.xml}}, and let us know if that solves the problem?
{code:xml}
<property name="file.encoding" value="utf-8"/>
{code}

The Javadoc should also be checked to see if it comes out right. Thanks!
                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502095#comment-13502095 ] 

Gilles commented on MATH-907:
-----------------------------

It could be an environment problem.

Why is the encoding assumed to be ASCII? It's right that those are definitely not ASCII characters.
In "emacs", I have a problem with the visualization of the uppercase gamma greek letter, but it appears in "gedit".
In any case, compilation and HTML generation from the Javadoc proceed fine.

                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502422#comment-13502422 ] 

Gilles commented on MATH-907:
-----------------------------

bq. you should modify the ant file

Do you actually use "ant" to compile?
If so, please signal this issue on the "dev" ML.

                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Konstantin Berlin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Berlin updated MATH-907:
-----------------------------------

    Summary: org.apache.commons.math3.special.Gamma comments have bad characters   (was: org.apache.commons.math3.special.Gamma comments have bad charecters)
    
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Sébastien Brisard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502637#comment-13502637 ] 

Sébastien Brisard commented on MATH-907:
----------------------------------------

@Konstantin: I've recently modified the pom.xml to correctly process UTF-8 chars. I forgot to update the build.xml.

@Gilles: in emacs, M-x set-buffer-file-coding-system, then utf-8 should do the work. You can set utf-8 as your default encoding.
                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502706#comment-13502706 ] 

Gilles commented on MATH-907:
-----------------------------

bq. I forgot to update the build.xml

The problem might be that there is no reference to an encoding in the "build.xml".

I think that the "build.xml" has quietly become unsupported... Please raise the issue on the "dev" ML, so that we can finally decide whether we should remove this file (unless someone will step forward to keep it in sync with the "maven" configuration).


                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503280#comment-13503280 ] 

Phil Steitz commented on MATH-907:
----------------------------------

I committed what should be a fix for this issue in r1413060.  I was not able to reproduce the compile failure; but I did see failure in javadoc correctness, which the committed change fixed.  The suggestion above did not seem to work for me - i.e., the jvm file.encoding property did not appear to be inherited properly by the the javac and javadoc tasks.  The change I committed defined a new local property and explicitly set it in both tasks.  If the OP can test and verify this works, we can resolve this as fixed.
                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Konstantin Berlin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502110#comment-13502110 ] 

Konstantin Berlin commented on MATH-907:
----------------------------------------

If that is so, you should modify the ant file. Things should compile without warnings on all platforms.
                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad charecters

Posted by "Konstantin Berlin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Berlin updated MATH-907:
-----------------------------------

    Description: 
    [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
    [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

  was:
    [javac] /Users/kberlin/Dropbox/Projects/math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
    [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

    
> org.apache.commons.math3.special.Gamma comments have bad charecters
> -------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Gilles (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502702#comment-13502702 ] 

Gilles commented on MATH-907:
-----------------------------

bq. M-x set-buffer-file-coding-system, then utf-8 should do the work.

That does not seem to be the problem (I'm in utf-8 by default). It's just that the _visual_ output for "Γ" does not work: I get a rectangle instead (whereas the "≤" shows fine).

                
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (MATH-907) org.apache.commons.math3.special.Gamma comments have bad characters

Posted by "Gilles (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles updated MATH-907:
------------------------

    Affects Version/s:     (was: 3.1)
    
> org.apache.commons.math3.special.Gamma comments have bad characters 
> --------------------------------------------------------------------
>
>                 Key: MATH-907
>                 URL: https://issues.apache.org/jira/browse/MATH-907
>             Project: Commons Math
>          Issue Type: Bug
>         Environment: OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>
>     [javac] /math/src/main/java/org/apache/commons/math3/special/Gamma.java:708: warning: unmappable character for encoding ASCII
>     [javac]      * Returns the value of log ??(a + b) for 1 ??? a, b ??? 2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira