Joe Damato
Joe Damato
This change associates the buffer allocated in the gpgme_data write callback with the UTF-8 encoding. If there is a configured internal encoding (e.g. Encoding.default_internal), then the string is exported to...
If you GPG clearsign some UTF-8 encoded data, ruby-gpgme will raise in the IOCallbacks: ``` Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 from /usr/lib/x86_64-linux-gnu/ruby/gems/2.4.0/gems/gpgme-2.0.2/lib/gpgme/io_callbacks.rb:12:in `write' /usr/lib/x86_64-linux-gnu/ruby/gems/2.4.0/gems/gpgme-2.0.2/lib/gpgme/ctx.rb:417:in `gpgme_op_sign' /usr/lib/x86_64-linux-gnu/ruby/gems/2.4.0/gems/gpgme-2.0.2/lib/gpgme/ctx.rb:417:in `sign' ... ```...