You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/19 00:20:29 UTC
[whimsy] branch master updated: read as utf-8
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 <ru...@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.