Skip to content

Commit a5c0991

Browse files
committed
Makefile: Add ELIXIR_ERL_OPTIONS=+fnu
``` warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) or set the ELIXIR_ERL_OPTIONS="+fnu" environment variable ```
1 parent 1b77d2e commit a5c0991

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ ifeq ($(with_nouveau), false)
235235
endif
236236

237237
.PHONY: elixir-init
238-
elixir-init: MIX_ENV=integration
238+
elixir-init: export MIX_ENV=integration
239+
elixir-init: export ELIXIR_ERL_OPTIONS=+fnu
239240
elixir-init: config.erl
240241
@mix local.rebar --force rebar3 ./bin/rebar3 && mix local.hex --force && mix deps.get
241242

@@ -287,6 +288,7 @@ endif
287288
.PHONY: elixir-source-checks
288289
# target: elixir-source-checks - Check source code formatting of Elixir test files
289290
elixir-source-checks: export MIX_ENV=integration
291+
elixir-source-checks: export ELIXIR_ERL_OPTIONS=+fnu
290292
elixir-source-checks: elixir-init
291293
@mix format --check-formatted
292294
@mix credo

Makefile.win

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ ifeq ($(with_nouveau), false)
215215
endif
216216

217217
.PHONY: elixir-init
218-
elixir-init: MIX_ENV=integration
218+
elixir-init: export MIX_ENV=integration
219+
elixir-init: export ELIXIR_ERL_OPTIONS=+fnu
219220
elixir-init: config.erl
220221
@mix local.rebar --force && mix local.hex --force && mix deps.get
221222

@@ -268,6 +269,7 @@ endif
268269
.PHONY: elixir-source-checks
269270
# target: elixir-source-checks - Check source code formatting of Elixir test files
270271
elixir-source-checks: export MIX_ENV=integration
272+
elixir-source-checks: export ELIXIR_ERL_OPTIONS=+fnu
271273
elixir-source-checks: elixir-init
272274
@mix format --check-formatted
273275
@mix credo

0 commit comments

Comments
 (0)