This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 5592081b Ensure UTF8
5592081b is described below
commit 5592081b8408e9fb67d192e7a83fb2584bac46e2
Author: Sebb <[email protected]>
AuthorDate: Sat Feb 15 14:41:17 2025 +0000
Ensure UTF8
---
www/status/index.cgi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/status/index.cgi b/www/status/index.cgi
index ad3bc7bb..55a48442 100755
--- a/www/status/index.cgi
+++ b/www/status/index.cgi
@@ -7,7 +7,7 @@ require 'whimsy/asf/status'
json = File.expand_path('../status.json', __FILE__)
begin
- status = JSON.parse(File.read(json))
+ status = JSON.parse(File.read(json, encoding: Encoding::UTF_8))
rescue Exception => e
$stderr.puts "Failed to read status.json: #{e}"
status = {}