Project

General

Profile

This project is closed and read-only.

Actions

Backport #3291

closed

File.expand_path returning wrong size

Backport #3291: File.expand_path returning wrong size

Added by blue_anna (Roberto Tomás Collins McCarthy) over 16 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:30234]

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

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #1

  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: PDF Atom