[ 
http://jira.codehaus.org/browse/JBEHAVE-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mauro Talevi resolved JBEHAVE-421.
----------------------------------

       Resolution: Fixed
    Fix Version/s: web-3.2

> Use of String.toUpper/LowerCase() should be locale-aware
> --------------------------------------------------------
>
>                 Key: JBEHAVE-421
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-421
>             Project: JBehave
>          Issue Type: Improvement
>          Components: Core, Web Selenium
>    Affects Versions: 3.1.2
>         Environment: Windows with Turkish locale, jbehave-3.1.2
>            Reporter: Muammer Yucel
>            Assignee: Mauro Talevi
>             Fix For: 3.2, web-3.2
>
>         Attachments: keywords_tr.properties
>
>
> In Turkish, there are two letters in order to symbolize English's I. They are 
> I and İ (I with dot). Lower case of "I" is "ı" (i without dot) and 
> lower case of "İ" (I with dot) is "i". Users from different nations may 
> encounter with this kind of problems, which come to surface when using 
> String.toUpper/LowerCase().  The solution is to use 
> String.toUpper/LowerCase(Locale), while defaulting to Locale.getDefault() if 
> none specified.
> String.toLowerCase() is currently used in:
> - StoryReporterBuilder.formatNames(boolean): should use the locale specified 
> in the LocalizedKeywords to retrieve the name lower case.  If not specified, 
> it defaults to Locale.getDefault().
> - UnderscoredCamelCaseResolver:  should provide a constructor to inject a 
> non-default Locale 
> String.toUpperCase() is currently used in:
> - PropertyWebDriverProvider:  should provide a protected method 
> toUpperCase(String) which can be overridden use the desired Locale.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to