diff options
author | David Robillard <d@drobilla.net> | 2011-01-21 00:25:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-21 00:25:01 +0000 |
commit | e5a61bb9834ca8de00016dbc6f32519ad9342962 (patch) | |
tree | 60b35c9b706325a5200c59525551247ffb855530 /src/write.c | |
parent | be0d9a7989137f27c36bf9f592d054442a005ae6 (diff) | |
download | serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.tar.gz serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.tar.bz2 serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.zip |
Fix language tag reading and writing.
git-svn-id: http://svn.drobilla.net/serd/trunk@18 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/write.c')
-rw-r--r-- | src/write.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/write.c b/src/write.c index 95b2c2f2..e4d524c6 100644 --- a/src/write.c +++ b/src/write.c @@ -165,9 +165,8 @@ serd_write_node(SerdWriter writer, serd_write_ascii(str->buf, str->n_bytes - 1, fd, '"'); fwrite("\"", 1, 1, fd); if (lang) { - fwrite("@\"", 1, 2, fd); + fwrite("@", 1, 1, fd); fwrite(lang->buf, 1, lang->n_bytes - 1, fd); - fwrite("\"", 1, 1, fd); } else if (datatype) { fwrite("^^", 1, 2, fd); serd_write_node(writer, URI, datatype, NULL, NULL); |