• R/O
  • SSH
  • HTTPS

dxruby: Commit


Commit MetaInfo

Revisión241 (tree)
Tiempo2012-03-25 09:08:08
Autormirichi

Log Message

なおしもれ

Cambiar Resumen

Diferencia incremental

--- trunk/dxruby.c (revision 240)
+++ trunk/dxruby.c (revision 241)
@@ -1486,7 +1486,11 @@
14861486 return Qnil;
14871487 }
14881488
1489+#ifdef HAVE_RB_ENC_STR_NEW
14891490 return rb_funcall( rb_str_new2( buf ), rb_intern( "force_encoding" ), 1, rb_str_new2( sys_encode ) );
1491+#else
1492+ return rb_str_new2( buf );
1493+#endif
14901494 }
14911495
14921496
@@ -1567,7 +1571,11 @@
15671571 return Qnil;
15681572 }
15691573
1574+#ifdef HAVE_RB_ENC_STR_NEW
15701575 return rb_funcall( rb_str_new2( buf ), rb_intern( "force_encoding" ), 1, rb_str_new2( sys_encode ) );
1576+#else
1577+ return rb_str_new2( buf );
1578+#endif
15711579 }
15721580
15731581
--- tags/1.2.1/dxruby.c (revision 240)
+++ tags/1.2.1/dxruby.c (revision 241)
@@ -1486,7 +1486,11 @@
14861486 return Qnil;
14871487 }
14881488
1489+#ifdef HAVE_RB_ENC_STR_NEW
14891490 return rb_funcall( rb_str_new2( buf ), rb_intern( "force_encoding" ), 1, rb_str_new2( sys_encode ) );
1491+#else
1492+ return rb_str_new2( buf );
1493+#endif
14901494 }
14911495
14921496
@@ -1567,7 +1571,11 @@
15671571 return Qnil;
15681572 }
15691573
1574+#ifdef HAVE_RB_ENC_STR_NEW
15701575 return rb_funcall( rb_str_new2( buf ), rb_intern( "force_encoding" ), 1, rb_str_new2( sys_encode ) );
1576+#else
1577+ return rb_str_new2( buf );
1578+#endif
15711579 }
15721580
15731581
Show on old repository browser