Skip to content
Permalink
Browse files
Additional fix for #249 - searching attributes with non-ascii charact…
…ers.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5763 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Sep 6, 2006
1 parent f4a3dd3 commit a6a5c5b005286e8bc19e9121393d90bed25ac0f0
Showing with 5 additions and 2 deletions.
  1. +3 −0 src/core/qgssearchstringlexer.ll
  2. +2 −2 src/core/qgssearchstringparser.yy
@@ -20,6 +20,9 @@
%option noyywrap
%option case-insensitive

// ensure that lexer will be 8-bit (and not just 7-bit)
%option 8bit

%{

#include <stdlib.h> // atof()
@@ -119,8 +119,8 @@ scalar_exp:
| '+' scalar_exp %prec UMINUS { $$ = $2; }
| '-' scalar_exp %prec UMINUS { $$ = $2; if ($$->type() == QgsSearchTreeNode::tNumber) $$->setNumber(- $$->number()); }
| NUMBER { $$ = new QgsSearchTreeNode($1); addToTmpNodes($$); }
| STRING { $$ = new QgsSearchTreeNode(yytext, 0); addToTmpNodes($$); }
| COLUMN_REF { $$ = new QgsSearchTreeNode(yytext, 1); addToTmpNodes($$); }
| STRING { $$ = new QgsSearchTreeNode(QString::fromUtf8(yytext), 0); addToTmpNodes($$); }
| COLUMN_REF { $$ = new QgsSearchTreeNode(QString::fromUtf8(yytext), 1); addToTmpNodes($$); }
;

%%

0 comments on commit a6a5c5b

Please sign in to comment.