Skip to content

Commit

Permalink
mkproto.sh: export LC_ALL instead of setting in-line
Browse files Browse the repository at this point in the history
Hope that fixes the flatpak-build regression.
  • Loading branch information
stsp committed Sep 14, 2024
1 parent c95a82d commit 8e62e33
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/libc/dj64/parsers/mkproto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,21 @@ extr_proto() {
}

list_syms() {
LC_ALL=C nm -A "$1" | grep " $2 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
saved_LA=$LC_ALL
export LC_ALL=C
nm -A "$1" | grep " $2 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
sed 's/^_//'
echo nm returned $?
export LC_ALL=$saved_LA
}

list_syms2() {
LC_ALL=C nm -A "$1" | grep -E " $2 "\|" $3 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
saved_LA=$LC_ALL
export LC_ALL=C
nm -A "$1" | grep -E " $2 "\|" $3 " | tr -s '[:blank:]' | cut -d " " -f 3 | \
sed 's/^_//'
echo nm returned $?
export LC_ALL=$saved_LA
}

TF=/tmp/tagsxx
Expand Down

0 comments on commit 8e62e33

Please sign in to comment.