You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Simon Helsen (JIRA)" <ji...@apache.org> on 2013/03/01 00:19:12 UTC

[jira] [Commented] (JENA-407) toLowerCase without Locale.English causing trouble in some language regions (Turkey especially)

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

Simon Helsen commented on JENA-407:
-----------------------------------

thanks Andy. Great
                
> toLowerCase without Locale.English causing trouble in some language regions (Turkey especially)
> -----------------------------------------------------------------------------------------------
>
>                 Key: JENA-407
>                 URL: https://issues.apache.org/jira/browse/JENA-407
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.10.0
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: Jena 2.10.1
>
>
> The instance I am referring to concretely is the language tag constructor: LanguageTag. 
> It makes the following call on line 41:  String lc = tag.toLowerCase(); This should be corrected to  String lc = tag.toLowerCase(Locale.English);
> The problem is that otherwise, it use the machine default language to produce the lower cases which in some Locales (Turkey being one of them) incorrectly lowercases letters like 'I'. Because the tag is a 'technical' term (not an actual piece of language) it should lowercase in English
> The effect of this particular instance is that we see 
> System.err.println("Internal Error in static initializer of IanaLnaguageTag.")
> appear in std.err and it has raised concerns with our customers.
> In general, any occurrence of toLowerCase should be adjusted if it lowercases a technical term.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira