diff options
author | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-01-26 18:15:37 +0900 |
---|---|---|
committer | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-01-28 16:57:36 +0900 |
commit | bdcfdef21444b03413213c69035f0fac8feedffb (patch) | |
tree | c3ac443862c6e0c7858b0be3eed5802296613b79 /activesupport/test | |
parent | 05112b21310c3ea04026176a5f7ca11040454ac1 (diff) | |
download | rails-bdcfdef21444b03413213c69035f0fac8feedffb.tar.gz rails-bdcfdef21444b03413213c69035f0fac8feedffb.tar.bz2 rails-bdcfdef21444b03413213c69035f0fac8feedffb.zip |
Update Unicode Version to 9.0.0
9.0.0 was released on June 21, 2016
http://blog.unicode.org/2016/06/announcing-unicode-standard-version-90.html
http://www.unicode.org/versions/Unicode9.0.0/
There are some changes about grapheme cluster in Unicode 9.0.0:
http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundary_Rules
------------
I noticed that `unpack_graphemes` returns [Other] when the argument is Other ÷ Prepend
(it must be [Other, Prepend]).
But in [Unicode 8.0.0's Prepend has no characters](http://www.unicode.org/reports/tr29/tr29-27.html#Prepend)
so we don't have to backport following patch:
```diff
should_break =
+ if pos == eoc
+ true
```
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/multibyte_test_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/multibyte_test_helpers.rb b/activesupport/test/multibyte_test_helpers.rb index 2201860d8a..a70516bb08 100644 --- a/activesupport/test/multibyte_test_helpers.rb +++ b/activesupport/test/multibyte_test_helpers.rb @@ -18,7 +18,7 @@ module MultibyteTestHelpers end UNIDATA_URL = "http://www.unicode.org/Public/#{ActiveSupport::Multibyte::Unicode::UNICODE_VERSION}/ucd" - CACHE_DIR = "#{Dir.tmpdir}/cache/unicode_conformance" + CACHE_DIR = "#{Dir.tmpdir}/cache/unicode_conformance/#{ActiveSupport::Multibyte::Unicode::UNICODE_VERSION}" FileUtils.mkdir_p(CACHE_DIR) UNICODE_STRING = "こにちわ".freeze |