[
https://issues.apache.org/jira/browse/CONNECTORS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Wright updated CONNECTORS-94:
----------------------------------
Affects Version/s: ManifoldCF 0.3
ManifoldCF 0.1
ManifoldCF 0.2
Fix Version/s: ManifoldCF next
> fix common localization traps
> -----------------------------
>
> Key: CONNECTORS-94
> URL: https://issues.apache.org/jira/browse/CONNECTORS-94
> Project: ManifoldCF
> Issue Type: Task
> Components: Framework core
> Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
> Reporter: Robert Muir
> Assignee: Robert Muir
> Fix For: ManifoldCF next
>
>
> Searching thru the LCF code, i found several uses of the following that
> appear to be potentially dangerous:
> * getBytes() with no encoding: this is dangerous as the encoding is
> completely unspecified. In most places this should likely mean "UTF-8"
> * getBytes("utf-8"): this is mostly a nitpick, but this alias is not
> guaranteed to exist (see Charset docs). I suggest changing these all to
> "UTF-8"
>
> * String.toLowerCase()/String.toUpperCase() with no specified Locale, where
> it appears the text is not used solely for display, but instead for 'caseless
> matching'. I suggest changing these to use either the root Locale: new
> Locale("") or even easier, Locale.ENGLISH. This way ACF does not have
> surprising behavior on say a Turkish computer.
> I can contribute a patch to address these.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira