i18nema 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/i18nema/i18nema.c +2 -1
- metadata +1 -1
data/ext/i18nema/i18nema.c
CHANGED
@@ -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
|
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:
|