aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-08-20 15:48:52 +0000
committerDavid Robillard <d@drobilla.net>2011-08-20 15:48:52 +0000
commit95697f076150957f01a84315775ab081011714bb (patch)
treea14005d936870d209bff6cc3bddb943b0fc7e51f /src/reader.c
parent070cbeb20775154aad7538145b547c0a98fc8c7b (diff)
downloadserd-95697f076150957f01a84315775ab081011714bb.tar.gz
serd-95697f076150957f01a84315775ab081011714bb.tar.bz2
serd-95697f076150957f01a84315775ab081011714bb.zip
Avoid writing illegal Turtle names as a result of URI qualifying (fix #734).
git-svn-id: http://svn.drobilla.net/serd/trunk@210 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/reader.c b/src/reader.c
index e08956ef..24802164 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -711,7 +711,7 @@ static inline uchar
read_nameStartChar(SerdReader* reader, bool required)
{
const uint8_t c = peek_byte(reader);
- if (c == '_' || is_alpha(c)) {
+ if (c == '_' || is_alpha(c)) { // TODO: not strictly correct
return eat_byte(reader, c);
} else {
if (required) {
@@ -734,8 +734,7 @@ read_nameChar(SerdReader* reader)
case '-': case 0xB7: case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
return eat_byte(reader, c);
- default:
- // TODO: 0x300-0x036F | 0x203F-0x2040
+ default: // TODO: 0x300-0x036F | 0x203F-0x2040
return 0;
}
return 0;