You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <de...@uima.apache.org> on 2011/02/11 14:25:57 UTC

[jira] Created: (UIMA-2050) FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings

FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings
----------------------------------------------------------------------------------

                 Key: UIMA-2050
                 URL: https://issues.apache.org/jira/browse/UIMA-2050
             Project: UIMA
          Issue Type: Bug
          Components: Build, Packaging and Test
            Reporter: Jörn Kottmann
            Priority: Trivial


In FileUtilTest we have the following piece of code:

FileUtils.saveString2File(text, tmpFile1);

text is a String which contains a German umlaut, depending
on the platform local it might not be possible to encode and decode the
umlaut correctly. In that case the umlaut is encoded as "?" and then decoded
"?", which fails the assertEquals which expects the correct umlaut.

To make the UIMA build independent of the local we have to drop this part of the
test where it writes the file without specifying the local. In the other part of the test the
file is saved with UTF-8 encoding which is available per Java Specification on every compliant JVM. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2050) FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings

Posted by "Marshall Schor (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010710#comment-13010710 ] 

Marshall Schor commented on UIMA-2050:
--------------------------------------

Jörn - can you close this issue?  

> FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings
> ----------------------------------------------------------------------------------
>
>                 Key: UIMA-2050
>                 URL: https://issues.apache.org/jira/browse/UIMA-2050
>             Project: UIMA
>          Issue Type: Bug
>          Components: Build, Packaging and Test
>            Reporter: Jörn Kottmann
>            Priority: Trivial
>
> In FileUtilTest we have the following piece of code:
> FileUtils.saveString2File(text, tmpFile1);
> text is a String which contains a German umlaut, depending
> on the platform local it might not be possible to encode and decode the
> umlaut correctly. In that case the umlaut is encoded as "?" and then decoded
> "?", which fails the assertEquals which expects the correct umlaut.
> To make the UIMA build independent of the local we have to drop this part of the
> test where it writes the file without specifying the local. In the other part of the test the
> file is saved with UTF-8 encoding which is available per Java Specification on every compliant JVM. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (UIMA-2050) FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings

Posted by "Jörn Kottmann (JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann closed UIMA-2050.
-------------------------------

    Resolution: Fixed
      Assignee: Jörn Kottmann

> FileUtilsTest.testReadWriteTempFile does not run on all platform default encodings
> ----------------------------------------------------------------------------------
>
>                 Key: UIMA-2050
>                 URL: https://issues.apache.org/jira/browse/UIMA-2050
>             Project: UIMA
>          Issue Type: Bug
>          Components: Build, Packaging and Test
>            Reporter: Jörn Kottmann
>            Assignee: Jörn Kottmann
>            Priority: Trivial
>
> In FileUtilTest we have the following piece of code:
> FileUtils.saveString2File(text, tmpFile1);
> text is a String which contains a German umlaut, depending
> on the platform local it might not be possible to encode and decode the
> umlaut correctly. In that case the umlaut is encoded as "?" and then decoded
> "?", which fails the assertEquals which expects the correct umlaut.
> To make the UIMA build independent of the local we have to drop this part of the
> test where it writes the file without specifying the local. In the other part of the test the
> file is saved with UTF-8 encoding which is available per Java Specification on every compliant JVM. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira