Increase the read_uchar_buffer size for Locale: display_script, display_country, display_language, display_name
Depending on the locales you use it throws an out of bounds memory error, which results in a Segmentation fault error.
Currently, these are the max character byte sizes:
(dev)> ICU::Locale.new('en-VI').display_name('ccp')
IndexError: Memory access offset=0 size=180 is out of bounds
from /bundle/gems/ffi-icu-0.1.10/lib/ffi-icu/uchar.rb:41:in `read_array_of_uint16'
Increase the
read_uchar_buffer
size for Locale:display_script
,display_country
,display_language
,display_name
Depending on the locales you use it throws an out of bounds memory error, which results in a
Segmentation fault
error.Currently, these are the max character byte sizes:
Longest character byte sizes: