From: Adam Dickmeiss Date: Fri, 23 Aug 2002 14:25:07 +0000 (+0000) Subject: Added conversions for ', & X-Git-Tag: YAZ.1.9~47 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=fcbe67e161824f159620ed029a15bf42f719d0c8;p=yaz-moved-to-github.git Added conversions for ', & --- diff --git a/retrieval/d1_write.c b/retrieval/d1_write.c index cba4ae9..565af5e 100644 --- a/retrieval/d1_write.c +++ b/retrieval/d1_write.c @@ -3,7 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: d1_write.c,v 1.16 2002-07-29 20:04:08 adam Exp $ + * $Id: d1_write.c,v 1.17 2002-08-23 14:25:07 adam Exp $ */ #include @@ -42,17 +42,18 @@ static void wrbuf_write_cdata(WRBUF b, const char *msg, int len) case '"': wrbuf_puts (b, """); break; + case '\'': + wrbuf_puts (b, "'"); + break; case '>': wrbuf_puts (b, ">"); break; case '<': wrbuf_puts (b, "<"); break; -#if 0 case '&': wrbuf_puts (b, "&"); break; -#endif default: wrbuf_putc(b, msg[i]); }