[redland-dev] [Raptor RDF Syntax Library 0000505]: Parsing certain escaped unicode strings in Turtle cases an error

Mantis Bug Tracker mantis-bug-sender at librdf.org
Mon May 14 08:57:52 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=505 
====================================================================== 
Reported By:                swh
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   505
Category:                   api
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                Turtle 
====================================================================== 
Date Submitted:             2012-05-14 12:57
Last Modified:              2012-05-14 12:57
====================================================================== 
Summary:                    Parsing certain escaped unicode strings in Turtle
cases an error
Description: 
Trying to parse the following Turtle document causes an error:

   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   
   <x> rdfs:label "\ud801\udc69" .

Both of the unicode codepoints are "unusual", they're surrogates, but should be
legal in Turtle.

The error is:

$ rapper -i turtle /tmp/foo.ttl 
rapper: Parsing URI file:///tmp/foo.ttl with parser turtle
rapper: Serializing with serializer ntriples
rapper: Error - URI file:///tmp/foo.ttl:3 - turtle_copy_string_token failed
rapper: Error - URI file:///tmp/foo.ttl:3 - syntax error
rapper: Parsing returned 0 triples

Steps to Reproduce: 
rapper -i turtle /tmp/foo.ttl

Additional Information: 
It fails with 2.0.4 as well, not tried other versions.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-14 12:57 swh            New Issue                                    
======================================================================



More information about the redland-dev mailing list