winevt_c 0.2.0-x86-mingw32 → 0.2.1-x86-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: 11e02f59f87ac51ad5e3c7e2eb6c4318565e4d1d56d513a22123f9925a8f4bdb
4
- data.tar.gz: c74e8d7399611c0c65aeea7c334645b32245b6efe6190fb5ecaac87f99796cbb
3
+ metadata.gz: 3b9988958563107ae1dd65a24a199ea5195b66c903591cde77b4577d5ff1784e
4
+ data.tar.gz: dbd7afb874c1388be1783090e33ca7167e72ff6e45c25ffbaba7176913989b26
5
5
  SHA512:
6
- metadata.gz: fa17a5b1aa52d5eb547a852c33037a0aca1512c0f6a964e5d451ba01eaf08056cf24aca79d88b100e53388daeb94c22818299f66d76fd2019d120ce98e322393
7
- data.tar.gz: 524022cb48449f1f902cf38632f1931c073826b2ac128a16f64af1f35dec39c7545a1114107ddcced7088401bd8655cbc2f19cc9524868482a83e07a5b766fcc
6
+ metadata.gz: ec504eecbe5c185eff33722a2695e949ebed7db02d69618dd94c8157e1706cdec6586ed71210d84627b83ddec449236d6f06b7f5b0a76dea1678fe6071207101
7
+ data.tar.gz: 583ce2c0a7a11f21d7b280c996133084fdfb3aed4e7856cd7c4f8fe3ffa0e4f2d1d984c58906b119dcbf10e71dbd73af0e33dd4bece7a034ef976fadfc15c0a2
@@ -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: x86-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