commit:     36bc3a31d2ec1b87aa10fe4239b31838717f82db
Author:     hololeap <hololeap <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Wed Feb  8 01:17:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 05:13:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36bc3a31

dev-lang/ghc: Force C.utf8 locale on all versions

Closes: https://github.com/gentoo-haskell/gentoo-haskell/issues/1289
Signed-off-by: hololeap <hololeap <AT> users.noreply.github.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/ghc/ghc-9.0.2-r3.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/ghc/ghc-9.0.2-r3.ebuild b/dev-lang/ghc/ghc-9.0.2-r3.ebuild
index 21f2dedfd9de..cf9330be391d 100644
--- a/dev-lang/ghc/ghc-9.0.2-r3.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2-r3.ebuild
@@ -424,6 +424,11 @@ src_unpack() {
 }
 
 src_prepare() {
+       # Force the use of C.utf8 locale
+       # <https://github.com/gentoo-haskell/gentoo-haskell/issues/1287>
+       # <https://github.com/gentoo-haskell/gentoo-haskell/issues/1289>
+       export LC_ALL=C.utf8
+
        ghc_setup_cflags
 
        # ghc-9.0.2 release anomaly

Reply via email to