winevt_c 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065eff4f692c925eba38647837fa8ebdb201fe9efcca9920f43c419b92d13742
4
- data.tar.gz: 0a17a6aba45eb9e13c97cb1670518864c3bc4a7bd8b58c4abea8225ce76dee20
3
+ metadata.gz: e7c3db8e10faa9b706628536277e3834e9ea2d3557256c7d52a25fcf896b396c
4
+ data.tar.gz: f8c0049047121834eac921f06c016da6f276f6af95cd0703a73a36df939d1a85
5
5
  SHA512:
6
- metadata.gz: ab903dcbb5f8b9af4aa750dabebb77aed9f1ba0cc6aad46e61dbd9fb10f5343082e1ea6fc53443858337b77d8b20774764335c0f23eb9bd9446aac0d78b9efe1
7
- data.tar.gz: 0a03974794ad7811a6e0187efb1f43615f48072a681e985c08a8596218c1cb17566d2e844d0fc11b5cb293c86a32cdc4190ea66d22b5dc986f6377c7bdaccc1a
6
+ metadata.gz: 20ed227e135edce36b07b5e47aa938af797cce29c49bf8fc0aa13cc80f19b41ab5b11849724d8cfc46862d7a3926d0bdf5855b8f6e1885aa619a6c204407c6d4
7
+ data.tar.gz: bbfcba109fe6bd6db097ab750389e4f3872713dc5f0f8f0aeab3c380c8eac87deb8dbd4c65ce31ac15846b9a19cff92e8b8a9deb2cb6ce2c2744b720c43e3006
@@ -144,7 +144,7 @@ rb_winevt_query_render(VALUE self)
144
144
  result = render_event(winevtQuery->event, EvtRenderEventXml);
145
145
  get_description(winevtQuery->event);
146
146
 
147
- return rb_str_new2(result);
147
+ return rb_utf8_str_new_cstr(result);
148
148
  }
149
149
 
150
150
  static VALUE
@@ -156,7 +156,7 @@ rb_winevt_query_message(VALUE self)
156
156
  TypedData_Get_Struct(self, struct WinevtQuery, &rb_winevt_query_type, winevtQuery);
157
157
  result = get_description(winevtQuery->event);
158
158
 
159
- return rb_str_new2(result);
159
+ return rb_utf8_str_new_cstr(result);
160
160
  }
161
161
 
162
162
  static DWORD
@@ -159,7 +159,7 @@ rb_winevt_subscribe_render(VALUE self)
159
159
  TypedData_Get_Struct(self, struct WinevtSubscribe, &rb_winevt_subscribe_type, winevtSubscribe);
160
160
  result = render_event(winevtSubscribe->event, EvtRenderEventXml);
161
161
 
162
- return rb_str_new2(result);
162
+ return rb_utf8_str_new_cstr(result);
163
163
  }
164
164
 
165
165
  static VALUE
@@ -171,7 +171,7 @@ rb_winevt_subscribe_message(VALUE self)
171
171
  TypedData_Get_Struct(self, struct WinevtSubscribe, &rb_winevt_subscribe_type, winevtSubscribe);
172
172
  result = get_description(winevtSubscribe->event);
173
173
 
174
- return rb_str_new2(result);
174
+ return rb_utf8_str_new_cstr(result);
175
175
  }
176
176
 
177
177
  static VALUE
@@ -220,7 +220,7 @@ char* get_description(EVT_HANDLE handle)
220
220
  }
221
221
  }
222
222
 
223
- result = wstr_to_mbstr(CP_ACP, descriptionBuffer, -1);
223
+ result = wstr_to_mbstr(CP_UTF8, descriptionBuffer, -1);
224
224
 
225
225
  #undef MAX_BUFFER
226
226
 
@@ -1,3 +1,3 @@
1
1
  module Winevt
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: winevt_c
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-17 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler