File: remove-utf8-warning.patch

package info (click to toggle)
elixir-lang 1.7.4-0.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,428 kB
  • sloc: erlang: 8,978; makefile: 232; sh: 200
file content (22 lines) | stat: -rw-r--r-- 846 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
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

--- elixir-lang-1.7.4.orig/lib/elixir/src/elixir.erl
+++ elixir-lang-1.7.4/lib/elixir/src/elixir.erl
@@ -140,11 +140,6 @@ check_endianness() ->
 
 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)~n", []);
     _ ->
       ok
   end.