Skip to content

Commit

Permalink
force utf-8 encoding from R
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Goodman committed Oct 3, 2012
1 parent af1a784 commit f769e1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ext/Converters.c
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion ext/rsruby.h
Expand Up @@ -33,7 +33,6 @@
#define R_RUBY_MAIN
#define CSTACK_DEFNS
#include "ruby.h"

#include "R.h"
#include "Rdefines.h"
#include "Rinternals.h"
Expand Down

0 comments on commit f769e1a

Please sign in to comment.