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 (Commented) (JIRA)" <ji...@apache.org> on 2011/10/25 21:22:32 UTC

[jira] [Commented] (JENA-147) SAX2Model errorhandler does not work correctly if you have a Turkish locale

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

Simon Helsen commented on JENA-147:
-----------------------------------

Btw, you can see this issue explained the javadoc of String.toUpperCase()
                
> SAX2Model errorhandler does not work correctly if you have a Turkish locale
> ---------------------------------------------------------------------------
>
>                 Key: JENA-147
>                 URL: https://issues.apache.org/jira/browse/JENA-147
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena
>         Environment: any
>            Reporter: Simon Helsen
>
> There is a small language bug in the JenaReader class when you run Jena on Turkish machine. In line 440, there is a call to toUpperCase() which incorrectly maps "strict" to "STRYCT" when executed on a Turkish machine. This leads to obviously problems which we observed when using SAX2Model. 
> The fix is to use toUpperCase(Locale.ENGLISH) in this case because you know the keywords are English

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira