aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-30 16:37:21 +0000
committerDavid Robillard <d@drobilla.net>2013-03-30 16:37:21 +0000
commit09c4bb6a3031d2951ff3d285936a91a4f87dca0f (patch)
tree32b72c0618d2aca379ab8b00cf6bd687e53b0ab0 /src/serdi.c
parent99a57ab1bc5878001f639d1cbfc4ab323848f884 (diff)
downloadserd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.tar.gz
serd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.tar.bz2
serd-09c4bb6a3031d2951ff3d285936a91a4f87dca0f.zip
Add more tests from the new W3C Turtle test suite.
Support crazy escaped NULL characters in literals. Fix incorrect round-trip serialization test command. git-svn-id: http://svn.drobilla.net/serd/trunk@446 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 290ee1d9..e1de6e32 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -195,9 +195,9 @@ main(int argc, char** argv)
}
}
- if (input_syntax != SERD_NTRIPLES // Base URI may change (@base)
- || (output_syntax == SERD_TURTLE)) {
- output_style |= SERD_STYLE_RESOLVED;
+ if (input_syntax != SERD_NTRIPLES || (output_style & SERD_STYLE_CURIED)) {
+ // Base URI may change and/or we're abbreviating URIs, so must resolve
+ output_style |= SERD_STYLE_RESOLVED; // Base may chan
}
if (bulk_write) {