When using
elixir 1.17.0-rc.0-otp-27
and erlang 27.0
compilation produces warnings:
Compiling 23 files (.ex)
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
│
239 │ |> Keyword.get(:password, '')
│ ~
│
└─ lib/x509/private_key.ex:239:33
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
│
310 │ {'DES-EDE3-CBC', :crypto.strong_rand_bytes(8)}
│ ~
│
└─ lib/x509/private_key.ex:310:6
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
│
30 │ '#{date}#{time}Z'
│ ~
│
└─ lib/x509/date_time.ex:30:5
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
│
43 │ '#{date}#{time}Z'
│ ~
│
└─ lib/x509/date_time.ex:43:5
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
│
408 │ ' \'()+,-./:=?'
│ ~
│
└─ lib/x509/rdn_sequence.ex:408:22
When using elixir 1.17.0-rc.0-otp-27 and erlang 27.0
compilation produces warnings:
This is because https://github.com/elixir-lang/elixir/releases/tag/v1.17.0-rc.0
I checked that the sigil
~c
existed in Elixir 1.5 https://hexdocs.pm/elixir/1.5.0-rc.0/Kernel.html that is the minimal supported Elixir according tomix.exs
in the repository.The change fixes the issue in newest Elixir while being fully backward compatible.