Actions
Backport #3291
closedFile.expand_path returning wrong size
Status:
Closed
Assignee:
-
Description
=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
Actions
Like0
Like0