Open ice799 opened 6 years ago
This fixes this bug: https://github.com/ueno/ruby-gpgme/issues/113
Probably would want to consider in the future unifying the encoding logic used in utf8_str_new
and the logic added in this PR to work the same way -- users would probably be happy if they could set their own internal encoding that would affect both code paths.
Hi 👋 any news on getting this merged in?
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 that encoding.