Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix build on Ruby18. We should specify endian for UTF16/32. #471

Merged
merged 1 commit into from

2 participants

@kennyj

I found build error the following url.

https://travis-ci.org/mikel/mail/jobs/3381626

I think we should specify endian for UTF16/32.

@jeremy jeremy merged commit 64f4eb5 into from
@jeremy
Collaborator

Green on my machine since big-endian is assumed. Should fix on Travis though.

@jeremy jeremy referenced this pull request from a commit
@jeremy jeremy Update CHANGELOG for #471, #475, #489, #495 a0b88dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/mail/version_specific/ruby_1_8.rb
View
4 lib/mail/version_specific/ruby_1_8.rb
@@ -107,6 +107,10 @@ def Ruby18.fix_encoding(encoding)
case encoding.upcase
when 'UTF8'
'UTF-8'
+ when 'UTF16', 'UTF-16'
+ 'UTF-16BE'
+ when 'UTF32', 'UTF-32'
+ 'UTF-32BE'
else
encoding
end
Something went wrong with that request. Please try again.