Skip to content

Commit ab6497a

Browse files
committed
Use LANG=en_US.UTF-8
to fix: invalid byte sequence in US-ASCII (ArgumentError)
1 parent 0e4888a commit ab6497a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bin/commit-email.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def git(*args)
136136
def with_gitenv
137137
orig = ENV.to_h.dup
138138
begin
139-
ENV['LANG'] = 'C'
140139
ENV.delete('GIT_DIR')
141140
yield
142141
ensure

hooks/post-receive.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ruby_commit_hook="$(cd "$(dirname $0)"; cd ..; pwd)"
1010
# Cancel impact of SSH Agent Forwarding to git push by matzbot
1111
unset SSH_AUTH_SOCK
1212

13+
# Cancel impact from LANG=C set by apache2
14+
export LANG=en_US.UTF-8
15+
1316
function log() {
1417
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1"
1518
}

0 commit comments

Comments
 (0)