Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Code Improvements:

Bug Fixes:

* Wrap multibyte split results without removed String extensions @OskarEichler

* Regression: Preserve message-level charset when adding parts (related to Rails ActionMailer) @shields
* Regression: Adding a part should not reset the mail's charset to nil @railsbob

Expand Down
2 changes: 1 addition & 1 deletion lib/mail/multibyte/chars.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def =~(other)
# Example:
# Mail::Multibyte.mb_chars('Café périferôl').split(/é/).map { |part| part.upcase.to_s } # => ["CAF", " P", "RIFERÔL"]
def split(*args)
@wrapped_string.split(*args).map { |i| i.mb_chars }
@wrapped_string.split(*args).map { |i| chars(i) }
end

# Like <tt>String#[]=</tt>, except instead of byte offsets you specify character offsets.
Expand Down