whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: read as utf-8
Date Thu, 19 Apr 2018 00:20:29 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 3675a07  read as utf-8
3675a07 is described below

commit 3675a070f6397b9a4d8727c0620af43136fa08c3
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Apr 18 20:20:17 2018 -0400

    read as utf-8
---
 www/status/monitors/git.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/status/monitors/git.rb b/www/status/monitors/git.rb
index 9590bb5..ed79bee 100644
--- a/www/status/monitors/git.rb
+++ b/www/status/monitors/git.rb
@@ -27,7 +27,10 @@ def Monitor.git(previous_status)
   if __FILE__ == $0 # unit test
     fdata = DATA.read
   else
-    fdata = File.open(log) {|file| file.flock(File::LOCK_EX); file.read}
+    fdata = File.open(log, 'r:UTF-8') do |file| 
+      file.flock(File::LOCK_EX)
+      file.read
+    end
   end
 
   updates = fdata.split(%r{\n(?:/\w+)*/srv/git/})[1..-1]

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message