[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77557] [Ruby trunk Feature#12656][Assigned] Expand short paths with File.expand_path
From:
shyouhei@...
Date:
2016-10-11 07:15:17 UTC
List:
ruby-core #77557
Issue #12656 has been updated by Shyouhei Urabe.
Status changed from Open to Assigned
Assignee set to cruby-windows
----------------------------------------
Feature #12656: Expand short paths with File.expand_path
https://bugs.ruby-lang.org/issues/12656#change-60823
* Author: Dト」is Mosト]s
* Status: Assigned
* Priority: Normal
* Assignee: cruby-windows
----------------------------------------
Currently File.expand_path expands short path only if it's last part.
~~~ruby
puts File.expand_path('C:/VERYLO~1')
puts File.expand_path('C:/VERYLO~1/OTHERL~1')
~~~
Produces
~~~
C:/VeryLongName12345
C:/VERYLO~1/OtherLongName54321
~~~
With attached patch it will always be long path
~~~
C:/VeryLongName12345
C:/VeryLongName12345/OtherLongName54321
~~~
This also fixes TestDir#test_glob test because it was failing due short path.
---Files--------------------------------
0001-Expand-short-paths-with-File.expand_path.patch (3.39 KB)
--
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>