Defect #12399

Non ASCII attachment filename encoding broken (MOJIBAKE) in receiving mail on Ruby 1.8

Added by Toshi MARUYAMA about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:Toshi MARUYAMA% Done:

0%

Category:Email receiving
Target version:2.1.4
Resolution:Fixed Affected version:2.1.3

Description

receiving-mail-and-test.diff contains mail fixtures and tests.
These tests pass on Ruby 1.9.
But These tests fail on Ruby 1.8.

  1) Failure:
test_gmail(MailHandlerTest) [test/unit/mail_handler_test_1.rb:50]:
<"テスト.txt"> expected but was
<"\e$B_F_9_H\e(B.txt">.

  2) Failure:
test_tb(MailHandlerTest) [test/unit/mail_handler_test_1.rb:34]:
<"テスト.txt"> expected but was
<"\e$B_F_9_H\e(B.txt">.

receiving-mail-and-test.diff Magnifier (4.93 KB) Toshi MARUYAMA, 2012-11-19 11:39


Related issues

Related to Redmine - Defect #4608: Mail attachment name encoding is incorectly handled Closed 2010-01-19

Associated revisions

Revision 10852
Added by Toshi MARUYAMA about 5 years ago

fix non ASCII attachment filename encoding broken (MOJIBAKE) in receiving mail on Ruby 1.8 (#12399)

Revision 10853
Added by Toshi MARUYAMA about 5 years ago

svn propset svn:eol-style native to fixtures (#12399)

Revision 10854
Added by Toshi MARUYAMA about 5 years ago

Merged r10852 from trunk (#12399)

fix non ASCII attachment filename encoding broken (MOJIBAKE) in receiving mail on Ruby 1.8.

Revision 10855
Added by Toshi MARUYAMA about 5 years ago

Merged r10853 from trunk (#12399)

svn propset svn:eol-style native to fixtures.

Revision 11650
Added by Toshi MARUYAMA over 4 years ago

fix broken tests on Rails 3.2.13 with Ruby 1.8 (#12399, #12375)

History

#1 Updated by Toshi MARUYAMA about 5 years ago

  • Subject changed from Japanese attachment filename encoding broken (MOJIBAKE) in receiving mail on Ruby 1.8 to Non ASCII attachment filename encoding broken (MOJIBAKE) in receiving mail on Ruby 1.8
  • Assignee set to Toshi MARUYAMA
  • Target version set to 2.1.4

#2 Updated by Toshi MARUYAMA about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Committed in trunk r10852, r10853 and 2.1-stable r10854, r10855.

#3 Updated by Toshi MARUYAMA over 2 years ago

  • Related to Defect #4608: Mail attachment name encoding is incorectly handled added

Also available in: Atom PDF