[tracker/wip/carlosg/parser-fix] libtracker-data: Fix parsing of first character in VARNAME terminal
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/parser-fix] libtracker-data: Fix parsing of first character in VARNAME terminal
- Date: Mon, 10 May 2021 10:08:39 +0000 (UTC)
commit b612a1a024f6029f1b9795c248ac0f78b6f5a4b7
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon May 10 11:58:35 2021 +0200
libtracker-data: Fix parsing of first character in VARNAME terminal
The first character may be an unicode character, it is not just in
the ascii range. Ensure we read it as such to make the checks on
greater values than 0xFF actually work.
src/libtracker-data/tracker-sparql-grammar.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql-grammar.h b/src/libtracker-data/tracker-sparql-grammar.h
index b26a32ea3..8835539ad 100644
--- a/src/libtracker-data/tracker-sparql-grammar.h
+++ b/src/libtracker-data/tracker-sparql-grammar.h
@@ -1831,7 +1831,7 @@ terminal_VARNAME (const gchar *str,
const gchar *end,
const gchar **str_out)
{
- ACCEPT_CHAR(PN_CHARS_U || RANGE_NUMBER);
+ ACCEPT_UNICHAR (PN_CHARS_U || RANGE_NUMBER);
OPTIONAL_UNICODE_STRING (PN_CHARS_U || RANGE_NUMBER ||
ch == 0x00B7 || (ch >= 0x0300 && ch <= 0x036F) ||
(ch >= 0x203F && ch <= 0x2040));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]