Fossil SCM

Fix the fossil_print() interface to use the internal printf() implementation (which we control) rather than the system printf() since might vary from one platform to the next. Ticket [6883bdd1eff926009c]

drh 2011-01-03 22:23 trunk
Commit d394120c42ddf1b0d13b867c3899be8bf3cb9d23
1 file changed +4 -1
+4 -1
--- src/printf.c
+++ src/printf.c
@@ -809,11 +809,14 @@
809809
va_list ap;
810810
va_start(ap, zFormat);
811811
if( g.cgiOutput ){
812812
cgi_vprintf(zFormat, ap);
813813
}else{
814
- vprintf(zFormat, ap);
814
+ Blob b = empty_blob;
815
+ vxprintf(&b, zFormat, ap);
816
+ fwrite(blob_buffer(&b), 1, blob_size(&b), stdout);
817
+ blob_reset(&b);
815818
}
816819
}
817820
818821
/*
819822
** Case insensitive string comparison.
820823
--- src/printf.c
+++ src/printf.c
@@ -809,11 +809,14 @@
809 va_list ap;
810 va_start(ap, zFormat);
811 if( g.cgiOutput ){
812 cgi_vprintf(zFormat, ap);
813 }else{
814 vprintf(zFormat, ap);
 
 
 
815 }
816 }
817
818 /*
819 ** Case insensitive string comparison.
820
--- src/printf.c
+++ src/printf.c
@@ -809,11 +809,14 @@
809 va_list ap;
810 va_start(ap, zFormat);
811 if( g.cgiOutput ){
812 cgi_vprintf(zFormat, ap);
813 }else{
814 Blob b = empty_blob;
815 vxprintf(&b, zFormat, ap);
816 fwrite(blob_buffer(&b), 1, blob_size(&b), stdout);
817 blob_reset(&b);
818 }
819 }
820
821 /*
822 ** Case insensitive string comparison.
823

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button