Provide Unicode Version information in a better location that UnicodeNormalize::UNICODE_VERSION
Currently, the Unicode version used in a specific version of Ruby is available
It is rather unnatural to have to do
The Unicode version is also available for make, as
The Unicode version should be available directly in Ruby, e.g. as
RUBY_UNICODE_VERSION or some such.
Updated by duerst (Martin Dürst) about 5 years ago
- Assignee changed from duerst (Martin Dürst) to nobu (Nobuyoshi Nakada)
If I add e.g.
puts ' CONFIG["UNICODE_VERSION"] = "$(UNICODE_VERSION)"'
as line 185 in tool/mkconfig.rb, I get a line
CONFIG["UNICODE_VERSION"] = "$(UNICODE_VERSION)"
to show up in rbconfig.rb, but in contrast to all the other $(...) variables in that file,
it doesn't get resolved, so that I only get the following:
$ ruby -e 'puts RbConfig::CONFIG["UNICODE_VERSION"]' $(UNICODE_VERSION)
This is as far as I got, so I'm hoping on some help from Nobu.
Updated by nobu (Nobuyoshi Nakada) about 5 years ago
- Status changed from Open to Closed
Applied in changeset ruby-trunk:r55417.
Unicode Version in RbConfig
- tool/mkconfig.rb: provide Unicode Version information as RbConfig::CONFIG['UNICODE_VERSION']. [ruby-core:75845] [Feature #12460]