[Groonga-commit] ranguba/rroonga at 9de21e8 [master] Set encoding to key and value

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sat Mar 5 22:57:33 JST 2016


Kouhei Sutou	2016-03-05 22:57:33 +0900 (Sat, 05 Mar 2016)

  New Revision: 9de21e88126e2c5365c1c5665c61cef1d62bdc08
  https://github.com/ranguba/rroonga/commit/9de21e88126e2c5365c1c5665c61cef1d62bdc08

  Message:
    Set encoding to key and value

  Modified files:
    ext/groonga/rb-grn-config.c

  Modified: ext/groonga/rb-grn-config.c (+2 -2)
===================================================================
--- ext/groonga/rb-grn-config.c    2016-03-05 22:56:03 +0900 (d437a61)
+++ ext/groonga/rb-grn-config.c    2016-03-05 22:57:33 +0900 (6851fd3)
@@ -207,9 +207,9 @@ rb_grn_config_each (VALUE self)
         VALUE rb_key, rb_value;
 
         key_size = grn_config_cursor_get_key(context, cursor, &key);
-        rb_key = rb_str_new(key, key_size);
+        rb_key = rb_grn_context_rb_string_new(context, key, key_size);
         value_size = grn_config_cursor_get_value(context, cursor, &value);
-        rb_value = rb_str_new(value, value_size);
+        rb_value = rb_grn_context_rb_string_new(context, value, value_size);
 
         rb_yield_values(2, rb_key, rb_value);
     }
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る