[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83460] [Ruby trunk Bug#8789][Open] File.expand_path(File.dirname(__FILE__)) return wrong encoded result

From: usa@...
Date: 2017-10-21 12:23:15 UTC
List: ruby-core #83460
Issue #8789 has been updated by usa (Usaku NAKAMURA).

Status changed from Assigned to Open
Assignee deleted (cruby-windows)
Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN)

----------------------------------------
Bug #8789: File.expand_path(File.dirname(__FILE__)) return wrong encoded result 
https://bugs.ruby-lang.org/issues/8789#change-67445

* Author: jiayp@glodon.com (贾 延平)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 2.2.0
* ruby -v: ruby 2.1.0dev (2013-08-10 trunk 42491) [i386-mingw32]
* Backport: 
----------------------------------------
=begin
A test.rb in a nonascii path with the follow content:
(({puts  File.expand_path(File.dirname(__FILE__)).encoding}))
Run it with utf-8 as internal encoding.
expect result: UTF-8
actual result:US-ASCII

Tested on windows 7.

I submited a patch to fix this problem but in a wrong way, check it(https://bugs.ruby-lang.org/issues/8774), hope it can help to fix this problem.
=end



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