Permalink
Browse files

force utf-8 encoding from R

  • Loading branch information...
Aarong93 committed Oct 3, 2012
1 parent af1a784 commit f769e1a2d37f0d257c09ba451b5f36411fab1b42
Showing with 1 addition and 2 deletions.
  1. +1 −1 ext/Converters.c
  2. +0 −1 ext/rsruby.h
View
@@ -392,7 +392,7 @@ to_ruby_vector(SEXP robj, VALUE *obj, int mode)
else
{
strings = CHAR(STRING_ELT(robj, i));
if (!(it = rb_str_new2(strings)))
if (!(it = rb_external_str_new_cstr(strings)))
return -1;
}
break;
View
@@ -33,7 +33,6 @@
#define R_RUBY_MAIN
#define CSTACK_DEFNS
#include "ruby.h"
#include "R.h"
#include "Rdefines.h"
#include "Rinternals.h"

0 comments on commit f769e1a

Please sign in to comment.