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/03/24 16:37:05 UTC
[jira] [Closed] (UIMA-2050) FileUtilsTest.testReadWriteTempFile
does not run on all platform default encodings
[ 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