W3C home > Mailing lists > Public > public-rdf-comments@w3.org > May 2013

\u0000 in literals?

From: Alex Milowski <alex@milowski.com>
Date: Mon, 20 May 2013 09:39:27 -0700
Message-ID: <CABp3FNKR3sRtsYvvb=Sf65DxYih2kmqS8S_8repMtt8tDXvNfQ@mail.gmail.com>
To: "public-rdf-comments@w3.org" <public-rdf-comments@w3.org>
It appears that tests:


are exactly the same.

The both have the contents:

# Bad string escape
<http://example/s> <http://example/p> "\U0000WXYZ" .

As far as I can tell, sections 2.5.1 and 6.4 indicate that NUL (U+0000) is
a perfectly legal character as long as it is escaped via \u0000 or \U0000.

Why are these tests marked as negative syntax tests?

Also, I assume that one of them was to test \u0000 instead of \U0000 ?

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Monday, 20 May 2013 16:39:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:56 UTC