[ 
https://issues.apache.org/jira/browse/CONNECTORS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084142#comment-13084142
 ] 

Karl Wright commented on CONNECTORS-94:
---------------------------------------

Has there been any update to this ticket?


> fix common localization traps
> -----------------------------
>
>                 Key: CONNECTORS-94
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-94
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: Framework core
>            Reporter: Robert Muir
>
> 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

        

Reply via email to