Project

General

Profile

Bug #15740

Backport Unicode Version 12.1.0 and other Japanese new era issues to Ruby 2.6

Added by duerst (Martin Dürst) 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:92061]

Description

Issue for backporting feature #15195 (deal with new Japanese era) once that feature's implementation has been completed in a few days or weeks.


Related issues

Blocked by Ruby master - Feature #15195: Deal with new Japanese eraClosedActions
Blocked by Ruby master - Feature #15742: Add Date#jisx0301 support new Japanese eraClosedActions

Associated revisions

Revision 67441
Added by duerst (Martin Dürst) 5 months ago

update to Unicode Version 12.1.0 (beta)

Unicode Version 12.1.0 adds one single character, U+32FF SQUARE ERA NAME REIWA,
for the new Japanese era starting on May 1st. 12.1.0 will be finalized only on
May 7th, so we go with the beta version because further changes in the data we
need are highly unlikely, and we want to make sure Ruby is ready for the new era.

  • common.mk: change UNICODE_VERSION to 12.1.0, UNICODE_BETA to YES

  • enc/unicode/12.1.0, enc/unicode/12.1.0/casefold.h, enc/unicode/12.1.0/name2ctype.h:
    add directory and generated data files for new version

  • lib/unicode_normalize/tables.rb: update for new character

  • test/ruby/test_regexp.rb: add test for character property age=12.1

  • test/test_unicode_normalize.rb: add test for NFKC decomposition of new character

This (mostly) completes issue #15195.

Revision 67453
Added by duerst (Martin Dürst) 5 months ago

remove Unicode 12.0.0 related directory and generated files

This completes issue #15195.

Revision 67476
Added by duerst (Martin Dürst) 4 months ago

mention support for Unicode Version 12.1.0 (issue #15195) in NEWS

Revision 69ec3936
Added by naruse (Yui NARUSE) 4 months ago

merge revision(s) 67439,67441,67453,67476: [Backport #15740]

    change lib/unicode_normalize/tables.rb to single item per line to make diffs shorter

    * template/unicode_norm_gen.tmpl: Change formatting of output to produce only a
      single item (or range) for each line to make future diffs shorter and easier
      to understand and check.

    * lib/unicode_normalize/tables.rb: output of the above

    update to Unicode Version 12.1.0 (beta)

    Unicode Version 12.1.0 adds one single character, U+32FF SQUARE ERA NAME REIWA,
    for the new Japanese era starting on May 1st. 12.1.0 will be finalized only on
    May 7th, so we go with the beta version because further changes in the data we
    need are highly unlikely, and we want to make sure Ruby is ready for the new era.

    * common.mk: change UNICODE_VERSION to 12.1.0, UNICODE_BETA to YES

    * enc/unicode/12.1.0, enc/unicode/12.1.0/casefold.h, enc/unicode/12.1.0/name2ctype.h:
      add directory and generated data files for new version

    * lib/unicode_normalize/tables.rb: update for new character

    * test/ruby/test_regexp.rb: add test for character property age=12.1

    * test/test_unicode_normalize.rb: add test for NFKC decomposition of new character

    This (mostly) completes issue #15195.

    remove Unicode 12.0.0 related directory and generated files

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 67525
Added by naruse (Yui NARUSE) 4 months ago

merge revision(s) 67439,67441,67453,67476: [Backport #15740]

    change lib/unicode_normalize/tables.rb to single item per line to make diffs shorter

    * template/unicode_norm_gen.tmpl: Change formatting of output to produce only a
      single item (or range) for each line to make future diffs shorter and easier
      to understand and check.

    * lib/unicode_normalize/tables.rb: output of the above

    update to Unicode Version 12.1.0 (beta)

    Unicode Version 12.1.0 adds one single character, U+32FF SQUARE ERA NAME REIWA,
    for the new Japanese era starting on May 1st. 12.1.0 will be finalized only on
    May 7th, so we go with the beta version because further changes in the data we
    need are highly unlikely, and we want to make sure Ruby is ready for the new era.

    * common.mk: change UNICODE_VERSION to 12.1.0, UNICODE_BETA to YES

    * enc/unicode/12.1.0, enc/unicode/12.1.0/casefold.h, enc/unicode/12.1.0/name2ctype.h:
      add directory and generated data files for new version

    * lib/unicode_normalize/tables.rb: update for new character

    * test/ruby/test_regexp.rb: add test for character property age=12.1

    * test/test_unicode_normalize.rb: add test for NFKC decomposition of new character

    This (mostly) completes issue #15195.

    remove Unicode 12.0.0 related directory and generated files

History

#1

Updated by duerst (Martin Dürst) 5 months ago

#2

Updated by duerst (Martin Dürst) 5 months ago

  • Blocked by Feature #15742: Add Date#jisx0301 support new Japanese era added
#3

Updated by duerst (Martin Dürst) 5 months ago

  • Subject changed from Backport update to Unicode Version 12.1.0 back to Ruby 2.6 branch to Backport Unicode Version 12.1.0 and other Japanese new era issues to Ruby 2.6
#4

Updated by naruse (Yui NARUSE) 4 months ago

  • Status changed from Open to Closed

Updated by naruse (Yui NARUSE) 4 months ago

  • Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: REQUIRED to 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: DONE

ruby_2_6 r67525 merged revision(s) 67439,67441,67453,67476.

#6

Updated by usa (Usaku NAKAMURA) 4 months ago

  • Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: DONE to 2.4: WONTFIX, 2.5: WONTFIX, 2.6: DONE

Also available in: Atom PDF