From 5ebc446e0e7e48297bbc11e0673043ac8267e672 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 17 Apr 2024 06:07:04 +0900 Subject: [PATCH 1/2] GH-41238: [Release] Use UTF-8 as the default encoding to upload binary We may have non ASCII characters in the process. For example, PGP uid may include non ASCII characters. --- dev/release/binary/runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/release/binary/runner.sh b/dev/release/binary/runner.sh index 465d60d629504..d92d1cd2671a5 100755 --- a/dev/release/binary/runner.sh +++ b/dev/release/binary/runner.sh @@ -19,7 +19,7 @@ set -u -export LANG=C +export LANG=C.UTF-8 target_dir=/host/binary/tmp original_owner=$(stat --format=%u ${target_dir}) From 7937dc48aca96103403507d682ad4a5a97a4c32d Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 17 Apr 2024 10:45:52 +0900 Subject: [PATCH 2/2] Use more C.UTF-8 --- dev/release/05-binary-upload.sh | 13 +++++++++++-- dev/release/binary/runner.sh | 10 ++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/dev/release/05-binary-upload.sh b/dev/release/05-binary-upload.sh index ae240c02ddf62..a45b8fbf8d92d 100755 --- a/dev/release/05-binary-upload.sh +++ b/dev/release/05-binary-upload.sh @@ -21,8 +21,17 @@ set -e set -u set -o pipefail -export LANG=C -export LC_CTYPE=C +export LANG=C.UTF-8 +export LC_ADDRESS=C.UTF-8 +export LC_CTYPE=C.UTF-8 +export LC_IDENTIFICATION=C.UTF-8 +export LC_MEASUREMENT=C.UTF-8 +export LC_MONETARY=C.UTF-8 +export LC_NAME=C.UTF-8 +export LC_NUMERIC=C.UTF-8 +export LC_PAPER=C.UTF-8 +export LC_TELEPHONE=C.UTF-8 +export LC_TIME=C.UTF-8 SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" diff --git a/dev/release/binary/runner.sh b/dev/release/binary/runner.sh index d92d1cd2671a5..76f7bce1ab21f 100755 --- a/dev/release/binary/runner.sh +++ b/dev/release/binary/runner.sh @@ -20,6 +20,16 @@ set -u export LANG=C.UTF-8 +export LC_ADDRESS=C.UTF-8 +export LC_CTYPE=C.UTF-8 +export LC_IDENTIFICATION=C.UTF-8 +export LC_MEASUREMENT=C.UTF-8 +export LC_MONETARY=C.UTF-8 +export LC_NAME=C.UTF-8 +export LC_NUMERIC=C.UTF-8 +export LC_PAPER=C.UTF-8 +export LC_TELEPHONE=C.UTF-8 +export LC_TIME=C.UTF-8 target_dir=/host/binary/tmp original_owner=$(stat --format=%u ${target_dir})