File: remove-utf8-warning.patch

package info (click to toggle)
elixir-lang 1.19.5.dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 15,524 kB
  • sloc: erlang: 12,234; sh: 321; makefile: 288
file content (23 lines) | stat: -rw-r--r-- 859 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Remove UTF-8 warning
 Even though upstream must be right, this warning is breaking other software
 that are parsing the output, for example the rabbitmq puppet module.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/912207
Forwarded: no
Last-Update: 2018-10-30

--- a/lib/elixir/src/elixir.erl
+++ b/lib/elixir/src/elixir.erl
@@ -169,12 +169,6 @@
 
 check_file_encoding(Encoding) ->
   case Encoding of
-    latin1 ->
-      io:format(standard_error,
-        "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~n", []);
     _ ->
       ok
   end.