Project

General

Profile

Backport #3291

Updated by jeremyevans0 (Jeremy Evans) 5 months ago

=begin

$ echo $LANG
es_EC.utf8
$ cd /home/roberto/Código && irb
>> Encoding.default_internal="utf-8"
=> "utf-8"
>> Encoding.default_external="utf-8"
=> "utf-8"
>> a= File.expand_path(".")
=> "/home/roberto/Código"
>> a[15]
"\xC3"
>> a.length == a.force_encoding(a.encoding).length
=> false
>> a[15]
"ó"

=end

Back