msys2-package.sh: fix iconv transliteration

LC_ALL overrides LC_CTYPE.

Even though C.UTF-8 may produce warnings, at least it works.
This commit is contained in:
Přemysl Eric Janouch 2023-06-27 00:34:53 +02:00
parent ce4a13ed38
commit 8ff33e6b63
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -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"
} {