You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Simon Svensson (JIRA)" <ji...@apache.org> on 2012/05/29 21:04:23 UTC

[jira] [Created] (LUCENENET-490) QueryParser is culture-sensitive

Simon Svensson created LUCENENET-490:
----------------------------------------

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


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

        

[jira] [Updated] (LUCENENET-490) QueryParser is culture-sensitive

Posted by "Christopher Currens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Currens updated LUCENENET-490:
------------------------------------------

    Fix Version/s: Lucene.Net 3.0.3
    
> 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

        

[jira] [Resolved] (LUCENENET-490) QueryParser is culture-sensitive

Posted by "Christopher Currens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Currens resolved LUCENENET-490.
-------------------------------------------

    Resolution: Fixed

That is how it used to be.  I believe I caused this regression in LUCENENET-478 when I re-ported QueryParser.  If the LocalizedTestCase class worked correctly, we would have caught this earlier, I think.
                
> 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

        

[jira] [Commented] (LUCENENET-490) QueryParser is culture-sensitive

Posted by "Simon Svensson (JIRA)" <ji...@apache.org>.
    [ 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