Solaris bugfix in ttconv/pprdrv_tt2.cpp

In

···

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05423.html


---------------------------------------------------------------------------------------------------------------------------------------
ttconv/pprdrv_tt2.cpp: This patch is *only* applied when `uname` = "SunOS". The comment is: Copy patched version of pprdrv_tt2.cpp for Solaris 10 that builds with gcc 4.3.2.
--- src/ttconv/pprdrv_tt2.cpp 2009-08-01 12:15:15.000000000 -0700
+++ patches/pprdrv_tt2.cpp 2009-08-08 23:33:24.000000000 -0700
@@ -104,7 +104,8 @@
{ /* have a log of points. */
if(stack_depth == 0)
{
- stream.put_char('{');
+ // Note the below is a hack to make it compile on Solaris 10 with gcc 4.3.2
+ stream.puts("{");
stack_depth=1;
}

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05428.html

I see that
is
a related message which discusses compiling on Solaris and the
put_char method. In fact, I think the issue may be fixed from the
discussion in that message, and our patch is unnecessary now. I’m
preparing a new matplotlib package for Sage without our patch above
which we will test on Solaris.
Jason

···

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05423.html


---------------------------------------------------------------------------------------------------------------------------------------
ttconv/pprdrv_tt2.cpp: This patch is *only* applied when `uname` = "SunOS". The comment is: Copy patched version of pprdrv_tt2.cpp for Solaris 10 that builds with gcc 4.3.2.
--- src/ttconv/pprdrv_tt2.cpp 2009-08-01 12:15:15.000000000 -0700
+++ patches/pprdrv_tt2.cpp 2009-08-08 23:33:24.000000000 -0700
@@ -104,7 +104,8 @@
{ /* have a log of points. */
if(stack_depth == 0)
{
- stream.put_char('{');
+ // Note the below is a hack to make it compile on Solaris 10 with gcc 4.3.2
+ stream.puts("{");
stack_depth=1;
}

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg05428.html

http://www.mail-archive.com/matplotlib-devel@lists.sourceforge.net/msg04947.html