[ruby-core:108178] [Ruby master Bug#18679] Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
From:
"taf2 (Todd Fisher)" <noreply@...>
Date:
2022-04-05 20:21:20 UTC
List:
ruby-core #108178
Issue #18679 has been updated by taf2 (Todd Fisher).
I found some additional insight... on Intel we can puts File.read("this-file-contains-utf8") # and no crash
On arm in some cases when we do
puts File.read("this-file-contains-uf8") # it crashes with an encoding error ...
Adding encoding: 'UTF-8' # does resolve this but... still in some cases we have found that if we receive bytes say from an HTTP request... and puts it'll crash... on arm but not intel...
----------------------------------------
Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
https://bugs.ruby-lang.org/issues/18679#change-97152
* Author: taf2 (Todd Fisher)
* Status: Open
* Priority: Normal
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
We are facing an issue only when running ruby on arm from amazon linux. In some cases when we puts a string we'll receive the above error message. However when we run the same data through puts on Intel we do not receive this error. I am not sure if this is a ruby issue maybe an iconv issue... but what would be the best way to capture more data to help from here?
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>