Revision: 469
          http://rpy.svn.sourceforge.net/rpy/?rev=469&view=rev
Author:   lgautier
Date:     2008-03-28 13:24:29 -0700 (Fri, 28 Mar 2008)

Log Message:
-----------
Use R's recent "translateChar".
 

Modified Paths:
--------------
    branches/rpy_nextgen/rpy/rinterface/rinterface.c

Modified: branches/rpy_nextgen/rpy/rinterface/rinterface.c
===================================================================
--- branches/rpy_nextgen/rpy/rinterface/rinterface.c    2008-03-28 06:40:36 UTC 
(rev 468)
+++ branches/rpy_nextgen/rpy/rinterface/rinterface.c    2008-03-28 20:24:29 UTC 
(rev 469)
@@ -709,7 +709,7 @@
     double vd;
     int vi;
     Rcomplex vc;
-    char *vs;
+    const char *vs;
     i_R = (R_len_t)i;
     switch (TYPEOF(*sexp)) {
     case REALSXP:
@@ -729,7 +729,7 @@
       res = PyComplex_FromDoubles(vc.r, vc.i);
       break;
     case STRSXP:
-      vs = CHARACTER_POINTER(STRING_ELT(*sexp, i_R));
+      vs = translateChar(STRING_ELT(*sexp, i_R));
       res = PyString_FromString(vs);
       break;
     case VECSXP:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to