Simon Helsen created JENA-407:
---------------------------------

             Summary: 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: ARQ
    Affects Versions: Jena 2.10.0
            Reporter: Simon Helsen
            Priority: Minor


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

Reply via email to