lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Svensson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENENET-490) QueryParser is culture-sensitive
Date Thu, 14 Jun 2012 18:30:42 GMT

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

Simon Svensson commented on LUCENENET-490:
------------------------------------------

I've commited changes to QueryParser.cs to call Support.Single.Parse instead of System.Single.Parse.
This fixes the failing tests when having CurrentCulture=sv-SE.

https://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/core/QueryParser/QueryParser.cs?view=diff&r1=1350361&r2=1350362&pathrev=1350362
                
> QueryParser is culture-sensitive
> --------------------------------
>
>                 Key: LUCENENET-490
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-490
>             Project: Lucene.Net
>          Issue Type: Bug
>    Affects Versions: Lucene.Net 3.0.3
>         Environment: CurrentCulture = sv-SE, CurrentUICulture = en-US.
>            Reporter: Simon Svensson
>            Priority: Minor
>             Fix For: Lucene.Net 3.0.3
>
>
> The QueryParser calls Single.Parse which is culture-sensitive. This will fail on cultures
using other decimal separators (e.g. Swedish [sv-SE]).
> This does not affect 2.9.4; it calls SupportClass.Single.Parse. This looks related to
LUCENENET-285.

--
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

        

Mime
View raw message