kip

kip

ex_cldr Core Team

Fun with OTP 28's new `:re` module - which version of Unicode is used by OTP 27/28?

I’m working on making sure all the ex_cldr_* and unicode_* libraries are ready for OTP 28. I know that one of the key changes is that OTP 28 has a new :re module (hooray!). What I can’t find out is what version of Unicode is used by OTP 27 (and below) and what version is used by OTP 28.

Why? Because for some regex the results are different (not too surprised):

# OTP 27
# "₿" was introduced in Unicode 10.0 in June 2017
# but its not recognised as a symbol in OTP 27
iex> String.match? "₿", ~r/[\p{S}]$/u
false

# OTP 28
# Correct result on OTP 28, but I still can't find out
# what version of Unicode is being used.
iex> String.match? "₿", ~r/[\p{S}]$/u
true

Of course I’ll check in erlangforums.com but I always like to ask here first since its surfaced in Elixir (for me).

Most Liked

adamu

adamu

I don’t know anything about this, I’m just digging in the source, but for OTP 27, the last commit to PCRE I can see that mentions Unicode version is from 2014 and says it’s on Unicode 7.

https://github.com/PCRE2Project/pcre1/commit/235bcaba7c75b27b5f93f7291edbf14e26079240

kip

kip

ex_cldr Core Team

Very kind of you to go diving into the source for that, thanks! And yeah, 7.0.0 would explain a lot.

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement