From 8ff33e6b63a2fc0201c4dd3d72f3e961199d731c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 27 Jun 2023 00:34:53 +0200 Subject: msys2-package.sh: fix iconv transliteration LC_ALL overrides LC_CTYPE. Even though C.UTF-8 may produce warnings, at least it works. --- msys2-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msys2-package.sh b/msys2-package.sh index f403769..363c36a 100755 --- a/msys2-package.sh +++ b/msys2-package.sh @@ -11,7 +11,7 @@ rm -rf "$destdir" meson install --destdir "$destdir" txt2rtf() { - LC_CTYPE=C.UTF-8 iconv -f utf-8 -t ascii//translit "$@" | awk 'BEGIN { + LC_ALL=C.UTF-8 iconv -f utf-8 -t ascii//translit "$@" | awk 'BEGIN { print "{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0 Tahoma;}}" print "\\f0\\fs24{\\pard\\sa240" } { -- cgit v1.2.3-70-g09d2