From: nobu@... Date: 2016-12-06T01:28:27+00:00 Subject: [ruby-core:78503] [Ruby trunk Bug#13008] File::basename fails if extension contains a colon Issue #13008 has been updated by Nobuyoshi Nakada. I did think so, but on recent cygwin, `touch c.d:12` makes a file "c.d\u{F03A}12". Seems `:` is mapped to that Private Use Area character. I'm not sure if we should support it now. ---------------------------------------- Bug #13008: File::basename fails if extension contains a colon https://bugs.ruby-lang.org/issues/13008#change-61884 * Author: Ronald Fischer * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-cygwin] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ~~~ File.basename('a/b/c.d:12') ~~~ returns ~~~ c.d ~~~ but should return ~~~ c.d:12 ~~~ -- 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>