i18nema 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/i18nema/i18nema.c +2 -1
  2. metadata +1 -1
@@ -1,4 +1,5 @@
1
1
  #include <ruby.h>
2
+ #include <ruby/encoding.h>
2
3
  #include <syck.h>
3
4
  #include "uthash.h"
4
5
 
@@ -50,7 +51,7 @@ i_object_to_robject(i_object_t *object) {
50
51
  return Qnil;
51
52
  switch (object->type) {
52
53
  case i_type_string:
53
- return rb_str_new2(object->data.string);
54
+ return rb_enc_str_new(object->data.string, object->size, rb_utf8_encoding());
54
55
  case i_type_array:
55
56
  return array_to_rarray(object);
56
57
  case i_type_hash:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: