Skip to content

Commit

Permalink
libbacktrace: fix b2test_buildid test on non-english locales
Browse files Browse the repository at this point in the history
On LANG=ru_RU.UTF-8 'b2test_buildid' test fails due to localized readelf
output:

$ LANG=ru_RU.UTF-8 readelf -n b2test | fgrep 4e37e8f
    ID сборки: 4e37e8fead8d6e8b0a9dc95ea25cd784dff3a393
$ LANG=C readelf -n b2test | fgrep 4e37e8f
    Build ID: 4e37e8fead8d6e8b0a9dc95ea25cd784dff3a393

libbacktrace/

	* install-debuginfo-for-buildid.sh.in: Force non-localized readelf
	output with LANG=C.
  • Loading branch information
trofi authored and ianlancetaylor committed Jul 12, 2024
1 parent 5aa9254 commit 96bc206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-debuginfo-for-buildid.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mkdir_p="@MKDIR_P@"
build_id_dir="$1"
src="$2"

buildid=$($readelf -n $src \
buildid=$(LANG=C $readelf -n $src \
| $grep "Build ID" \
| $awk '{print $3}')

Expand Down

0 comments on commit 96bc206

Please sign in to comment.