Skip to content

Commit

Permalink
Merge pull request #169 from ruby/avoid_extra_lfs
Browse files Browse the repository at this point in the history
Force utf-8 to avoid extra LFs in quoted printable
  • Loading branch information
hsbt authored Dec 8, 2022
2 parents ae98ac3 + eb68ea4 commit 26f1cb6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def issue_edit(user, journal)
def mail(headers={}, &block)
headers[:bcc] = (headers[:bcc] || []).concat((headers[:cc] || []))
headers[:cc] = []
headers[:charset] = "utf-8"
locale = headers[:to].to_s.include?('ruby-dev') ? :ja : :en
I18n.with_locale(locale) { super(headers) }
end
Expand Down

0 comments on commit 26f1cb6

Please sign in to comment.