File 0536-Set-UTF-8-locale-on-github-action-builds.patch of Package erlang

From e4c3fcfb777afe1307867ef767669abd4f9575b5 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Fri, 28 May 2021 20:45:01 +0200
Subject: [PATCH] Set UTF-8 locale on github action builds

Before, locale what set to "POSIX" which would cause java compiler
to assume pure ASCII source file and reject UTF-8 characters.

error: unmappable character (0xC3) for encoding US-ASCII
---
 .github/dockerfiles/Dockerfile.debian-base | 2 ++
 .github/dockerfiles/Dockerfile.ubuntu-base | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/dockerfiles/Dockerfile.ubuntu-base b/.github/dockerfiles/Dockerfile.ubuntu-base
index 93cc3f2b45..f18ff2dd47 100644
--- a/.github/dockerfiles/Dockerfile.ubuntu-base
+++ b/.github/dockerfiles/Dockerfile.ubuntu-base
@@ -6,6 +6,8 @@ FROM ubuntu
 ENV INSTALL_LIBS="zlib1g-dev libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxbase3.0-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libsctp-dev lksctp-tools"
 
 ENV DEBIAN_FRONTEND=noninteractive
+ENV LANG=C.UTF-8
+ENV LC_ALL=C.UTF-8
 
 RUN apt-get update && \
         apt-get -y upgrade && \
-- 
2.26.2

openSUSE Build Service is sponsored by