From 834a72f15e135f4320e71249ca714421cb1526f2 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 6 Dec 2023 06:02:07 +0900 Subject: [PATCH] GH-39074: [Release][Packaging] Use UTF-8 explicitly for KEYS --- dev/tasks/linux-packages/apache-arrow-release/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tasks/linux-packages/apache-arrow-release/Rakefile b/dev/tasks/linux-packages/apache-arrow-release/Rakefile index dc2411f0de727..19a0e4f915fe3 100644 --- a/dev/tasks/linux-packages/apache-arrow-release/Rakefile +++ b/dev/tasks/linux-packages/apache-arrow-release/Rakefile @@ -43,7 +43,7 @@ class ApacheArrowReleasePackageTask < PackageTask keys_path = "#{@archive_base_name}/KEYS" download("https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/KEYS", keys_path) - keys = File.read(keys_path) + keys = File.read(keys_path, encoding: "UTF-8") File.open(keys_path, "w") do |keys_file| is_ed25519_key = false deny_lists = [