[ruby-core:76017] [CommonRuby Feature#12460] Provide Unicode Version information in a better location that UnicodeNormalize::UNICODE_VERSION

From: duerst@...
Date: 2016-06-14 09:05:43 UTC
List: ruby-core #76017
Issue #12460 has been updated by Martin D端rst.

Assignee changed from Martin D端rst to 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.

----------------------------------------
Feature #12460: Provide Unicode Version information in a better location that UnicodeNormalize::UNICODE_VERSION
https://bugs.ruby-lang.org/issues/12460#change-59216

* Author: Martin D端rst
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
----------------------------------------
Currently, the Unicode version used in a specific version of Ruby is available
as ```UnicodeNormalize::UNICODE_VERSION```, ```from lib/unicode_normalize/tables.rb```.
It is rather unnatural to have to do
```require 'unicode_normalize/normalize'```
e.g. in ```test/ruby/enc/test_case_comprehensive.rb``` 

The Unicode version is also available for make, as ```$(UNICODE_VERSION)```.

The Unicode version should be available directly in Ruby, e.g. as
```RUBY_UNICODE_VERSION``` or some such.



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

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

In This Thread

Prev Next