Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6912/runtime

Modified Files:
      Tag: XQuery_0-20
        pf_support.mx 
Log Message:

fixing bug
[ 1828362 ] XQ:normalize-space does not remove leading/trailing space
http://sourceforge.net/tracker/index.php?func=detail&aid=1828362&group_id=56967&atid=482468

fn:normalize-space now also (correcly) removes leading & trailing spaces.
simple test added.


Index: pf_support.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pf_support.mx,v
retrieving revision 1.267.2.1
retrieving revision 1.267.2.2
diff -u -d -r1.267.2.1 -r1.267.2.2
--- pf_support.mx       22 Oct 2007 21:11:40 -0000      1.267.2.1
+++ pf_support.mx       11 Nov 2007 13:23:43 -0000      1.267.2.2
@@ -5775,8 +5775,6 @@
         n = strspn (cur, ws);
         if (n)
         {
-            *pointer = ' ';
-            pointer++;
             cur += n;
         }
 
@@ -5796,6 +5794,9 @@
                 cur += n;
             }
         }
+        if (pointer > *res && pointer[-1] == ' ') {
+            pointer--;
+        }
         *pointer = '\0';
 
         return GDK_SUCCEED;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to