winevt_c 0.2.0-x64-mingw32 → 0.2.1-x64-mingw32

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: eac2ae7b87b73d1250e31a3e488833c354765182bce3c3a860d1be2a055d29e5
4
- data.tar.gz: a5bccfadaea2b9aaa47a8e41ef7210c2be4cad1c27eea1c6e50c07ea1ac5dc68
3
+ metadata.gz: ed6d1b97a80d3a2f1b96614f969898908125f838214e7d6bec3dd55b4aa2fa40
4
+ data.tar.gz: 7976f98208b0b3d55fe0dce01b847c2b099078323fa2d8498e6f042cce5b9dda
5
5
  SHA512:
6
- metadata.gz: be0a861927a96a84d1c7ac1eafc674c35f07d2e617780cae14e51d495fee949d13b04615606c302ca7624cb97398b53e9be7c46132834e6005179834266c3bad
7
- data.tar.gz: 51f7614c2320073bd4e41932478ae13cd91270f44543ab81d894f0ef1e328a407b6cc2d25b5af4009863f6f15c14b0aa85dadb6951bb40ab2b409c06ff32f7f3
6
+ metadata.gz: f2b78ac264a44daed4536ab6c142ef703fa4b3add8d573ef0988ca34bc5e0a2db703a6064fe7d37570a1061fdd2911507889d94cee506cb1e3adf1a29794d1ec
7
+ data.tar.gz: b50386dd33f8da78def63658f541ed411b629c0b594c34c63bda105781c276d8d4b2c9158e335582e01c40c2176eba49183ac83816a0631912b97cdcbc2d0c4d
@@ -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
 
Binary file
Binary file
Binary file
@@ -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: x64-mingw32
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