[ruby-core:75958] [Ruby trunk Bug#12483][Closed] File.expand_path does not normalize cwd

From: nobu@...
Date: 2016-06-12 01:23:10 UTC
List: ruby-core #75958
Issue #12483 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed

----------------------------------------
Bug #12483: File.expand_path does not normalize cwd
https://bugs.ruby-lang.org/issues/12483#change-59151

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED
----------------------------------------
https://github.com/rails/rails/issues/25303#issuecomment-224834804

> I notice some other inconsistencies that may be related. Within a directory called "À" `Dir.pwd` returns a composed form, while `expand_path` returns a decomposed one:
> 
> ```ruby
> À $ ruby -e 'p Dir.pwd.bytes'
> [47, 85, 115, 101, 114, 115, 47, 102, 120, 110, 47, 116, 109, 112, 47, 195, 128]
> 
> À $ ruby -e 'p File.expand_path(".").bytes'
> [47, 85, 115, 101, 114, 115, 47, 102, 120, 110, 47, 116, 109, 112, 47, 65, 204, 128]
> ```




-- 
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>

In This Thread

Prev Next