[
http://jira.codehaus.org/browse/JBEHAVE-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mauro Talevi updated JBEHAVE-421:
---------------------------------
Component/s: (was: Core)
Web Selenium
Description:
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.
was:
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().
Test case on Turkish locale:
StoryReporterBuilderBehaviour.shouldBuildWithReporterOfDifferentFormats
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.
Summary: Use of String.toUpper/LowerCase() should be locale-aware
(was: StoryReporterBuilder.formatNames() should be locale-aware)
> 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
>
> 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