Issue #18028 has been updated by duerst (Martin D=FCrst).


One of the testing scripts (`test/ruby/enc/test_emoji_break.rb`) that the v=
ersion declared internally in a data files matches the version we expect. I=
n that context, I ran into the following problem, reported via standard cha=
nnels to the Unicode Consortium:

Emoji data files in https://www.unicode.org/Public/emoji/13.1/ internally s=
ay they are for version 13.1. But the files moved to https://www.unicode.or=
g/Public/13.0.0/ucd/emoji/, say "# Version: 13.0". We keep both an Unicode =
version and an Emoji version (available in Ruby via RbConfig::CONFIG['UNICO=
DE_VERSION'] and RbConfig::CONFIG['UNICODE_EMOJI_VERSION']). But neither of=
 them matches 13.0. For the files moved under https://www.unicode.org/Publi=
c/13.0.0/ucd/emoji/, they really should indicate the Unicode version, not t=
he Emoji version, because they are updated in sync with Unicode versions, a=
nd not updated when only Emoji versions get updated.

As a temporary measure, I plan to ignore the version in the moved file(s).

----------------------------------------
Bug #18028: test/ruby/enc/test_emoji_breaks.rb does not deal with Unicode r=
anges in file emoji-sequences.txt
https://bugs.ruby-lang.org/issues/18028#change-92852

* Author: duerst (Martin D=FCrst)
* Status: Open
* Priority: Normal
* Assignee: duerst (Martin D=FCrst)
* Target version: 3.1
* ruby -v: ruby 3.1.0dev (2021-06-03T06:59:33Z master 7e14762159) [x86_64-l=
inux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
While working on issue #17750, I found out that test_emoji_breaks.rb does n=
ot deal with Unicode ranges in the file emoji-sequences.txt. That means tha=
t the tests may not cover all emoji. This should eventually be fixed, but r=
equires some rewriting of the code, which I plan to do independently of the=
 Unicode/Emoji version upgrade.



-- =

https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>