Skip to content

Commit

Permalink
Always use UTF-8 locale, because Git always use this locale by default;
Browse files Browse the repository at this point in the history
closes #103, closes #105
  • Loading branch information
akzhan committed Oct 13, 2011
1 parent 093658e commit 36122d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/git-commit-notifier
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if RUBY_VERSION < '1.9'
require 'jcode'
end

if RUBY_VERSION >= '1.9'
Encoding.default_external = "utf-8"
Encoding.default_internal = "utf-8"
end


require 'rubygems'

# parameters: revision1, revision 2, branch
Expand Down
6 changes: 6 additions & 0 deletions local-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
require 'jcode'
end

if RUBY_VERSION >= '1.9'
Encoding.default_external = "utf-8"
Encoding.default_internal = "utf-8"
end


require 'rubygems'
$LOAD_PATH.unshift(File.expand_path('./lib', File.dirname(__FILE__)))

Expand Down

0 comments on commit 36122d0

Please sign in to comment.