From c11e648799cf32d267875381d967e8228a07cea6 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 30 Nov 2016 17:29:19 +0000 Subject: Regexp supports Unicoe 9.0.0's \X * meta character \X matches Unicode 9.0.0 characters with some workarounds for UTR #51 Unicode Emoji, Version 4.0 emoji zwj sequences. [Feature #12831] [ruby-core:77586] The term "character" can have many meanings bytes, codepoints, combined characters, and so on. "grapheme cluster" is highest one of such words, which means user-perceived characters. Unicode Standard Annex #29 UNICODE TEXT SEGMENTATION specifies how to handle grapheme clusters (extended grapheme cluster). But some specs aren't updated to current situation because Unicode Emoji is rapidly extended without well definition. It breaks the precondition of UTR#29 "Grapheme cluster boundaries can be easily tested by looking at immediately adjacent characters". (the sentence will be removed in the next version) Though some of its detail are described in Unicode Technical Report #51 UNICODE EMOJI but it is not merged into UTR#29 yet. http://unicode.org/reports/tr29/ http://unicode.org/reports/tr51/ http://unicode.org/Public/emoji/4.0/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/downloader.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tool/downloader.rb') diff --git a/tool/downloader.rb b/tool/downloader.rb index 6c34f73ca2..d4f958e69a 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -228,7 +228,13 @@ if $0 == __FILE__ dl = Downloader.const_get(dl) ARGV.shift ARGV.each do |name| - name = "#{prefix}/#{File.basename(name)}" if prefix + if prefix + if name.include?('/auxiliary/') + name = "#{prefix}/auxiliary/#{File.basename(name)}" + else + name = "#{prefix}/#{File.basename(name)}" + end + end dl.download(name, destdir, since, options) end else -- cgit v1.2.3