lib/facter/resolvers/windows/ffi/ffi.rb in facter-4.0.33 vs lib/facter/resolvers/windows/ffi/ffi.rb in facter-4.0.34

- old
+ new

@@ -28,10 +28,10 @@ class Pointer def read_wide_string_with_length(char_length) # char_length is number of wide chars (typically excluding NULLs), *not* bytes str = get_bytes(0, char_length * 2).force_encoding('UTF-16LE') - str.encode('UTF-8', str.encoding, {}) + str.encode('UTF-8', str.encoding) end def read_wide_string_without_length wide_character = get_bytes(0, 2) i = 2