/usr/lib/ruby/vendor_ruby/ffi-glib/iconv.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | GLib.load_class :IConv
module GLib
# Overrides for IConv
class IConv
def self.open(to_codeset, from_codeset)
to_ptr = GirFFI::InPointer.from(:utf8, to_codeset)
from_ptr = GirFFI::InPointer.from(:utf8, from_codeset)
result_ptr = Lib.g_iconv_open(to_ptr, from_ptr)
wrap(result_ptr)
end
end
end
|