You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2011/01/22 16:44:44 UTC
[jira] Resolved: (CODEC-92) Many test cases use getBytes() which
uses the default platform encoding so tests may fail on some platforms
[ https://issues.apache.org/jira/browse/CODEC-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved CODEC-92.
-------------------------------
Resolution: Fixed
There are no calls to getBytes(). This seems to have been addressed a while back.
> Many test cases use getBytes() which uses the default platform encoding so tests may fail on some platforms
> -----------------------------------------------------------------------------------------------------------
>
> Key: CODEC-92
> URL: https://issues.apache.org/jira/browse/CODEC-92
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Sebb
> Priority: Minor
> Fix For: 1.5
>
>
> Many test cases use getBytes() or new .String(byte[] bytes).
> These both use the default platform encoding so the tests may fail on some platforms.
> The tests should either use a known encoding (e.g. UTF-8) or should use bytes directly (e.g. 'h','e','l','l','o' instead of "hello".getBytes())
> There don't seem to be any examples of such method calls in the main code, so the priority has been set to minor.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.