[Monetdb-developers] [Monetdb-pf-checkins] pathfinder/runtime serialize_dflt.mx, 1.23.2.3, 1.23.2.4

Jan Rittinger rittinge at in.tum.de
Fri Mar 16 11:28:19 CET 2007


Jan,

character references should be printed as decimal (not as octal) numbers.

Cheers,
Jan

On 03/16/2007 11:20 AM, Jan Flokstra wrote with possible deletions:
> Update of /cvsroot/monetdb/pathfinder/runtime
> In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28663/runtime
> 
> Modified Files:
>       Tag: XQuery_0-16
> 	serialize_dflt.mx 
> Log Message:
> * Fix for Jens bug monetdb-Bugs-1681921 ] XQ: Character escaping is bogus
> 
> echo '""' | MapiClient -lx -o xml
> 
> Now results correctly in:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <XQueryResult></XQueryResult>
> 
> 
> 
> Index: serialize_dflt.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/pathfinder/runtime/serialize_dflt.mx,v
> retrieving revision 1.23.2.3
> retrieving revision 1.23.2.4
> diff -u -d -r1.23.2.3 -r1.23.2.4
> --- serialize_dflt.mx	15 Feb 2007 01:46:12 -0000	1.23.2.3
> +++ serialize_dflt.mx	16 Mar 2007 10:20:47 -0000	1.23.2.4
> @@ -180,7 +180,7 @@
>              start = end + 1;
>  
>              if ( isspecial_ch == 1 ) { /* print octal */
> -                stream_printf(ctx->out,"\\%03o",(unsigned char)src[end]);
> +		stream_printf(ctx->out,"&#%o;",(unsigned char)src[end]);
>              } else {
>                  char *emit_val = dflt_ws->special_val[(int)isspecial_ch];
>                  int   emit_len = dflt_ws->special_len[(int)isspecial_ch];
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Monetdb-pf-checkins mailing list
> Monetdb-pf-checkins at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins
> 

-- 
Jan Rittinger
Database Systems
Technische Universität München (Germany)
http://www-db.in.tum.de/~rittinge/




More information about the developers-list mailing list