File 0421-fix-generated-encoding-for-xml-files-generated-with-.patch of Package erlang

From ce7e5e9c26efa1f907b152a4f6d223e0080542d1 Mon Sep 17 00:00:00 2001
From: Mariano Guerra <mariano@marianoguerra.org>
Date: Tue, 14 Aug 2018 14:35:33 +0200
Subject: [PATCH] fix generated encoding for xml files generated with emd2exml

DTRACE.xml and SYSTEMTRAP.xml set encoding to utf8 instead of utf-8
and make xmerl_scan:file/1,2 fail parsing them

(cherry picked from commit faded6e1cdceb049d2d9bc995b6c981d58709315)
---
 make/emd2exml.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/make/emd2exml.in b/make/emd2exml.in
index 57bcaba24d..24837696f4 100755
--- a/make/emd2exml.in
+++ b/make/emd2exml.in
@@ -1214,7 +1214,7 @@ complete_output(#state{out = Out} = S) ->
 
 complete_output(S, [], Out) ->
     S#state{delayed_array = [],
-	    out = ["<?xml version=\"1.0\" encoding=\"utf8\" ?>", nl(),
+	    out = ["<?xml version=\"1.0\" encoding=\"utf-8\" ?>", nl(),
 		   "<!DOCTYPE chapter SYSTEM \"chapter.dtd\">", nl(),
 		   Out]};
 complete_output(S, [{delayed, IX}|Rest], Out) ->
-- 
2.16.4

openSUSE Build Service is sponsored by