Closed Bug 454238 Opened 16 years ago Closed 16 years ago

SMTP bugmail fails with "Wide character in syswrite" when diff_header contains multi-byte string.

Categories

(Bugzilla :: Email Notifications, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 405453

People

(Reporter: himorin, Unassigned)

Details

Attachments

(2 files)

Bugzilla dies with the message below. > Software error: > Wide character in syswrite at /usr/lib/perl5/5.8.5/Net/Cmd.pm line 436. It's ok (no error) with short_desc, but ng with product/component.
Net::Cmd--you're using SMTP? Does it fail the same way with Sendmail?
Target Milestone: --- → Bugzilla 3.2
Yes using mail_delivery_method = SMTP. Setting this value to sendmail, it's ok. And, it works fine when "Added" column don't include wide-charactors.
mmm. no. i'm confusing. Some errors doesn't include any wide charactors in three-column part in diffs.
Hey, rhbs, this sounds like some problem with Email::Send::SMTP--is there something that we should do on our side if we're sending utf8 strings to it? (utf8::encode them or something?)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking3.2+
Summary: bugmail fails with "Wide character in syswrite" when diff_header contains multi-byte string. → SMTP bugmail fails with "Wide character in syswrite" when diff_header contains multi-byte string.
himorin, could you get me the output of this? perl -MNet::Cmd -we 'print Net::Cmd->VERSION'
# perl -v This is perl, v5.8.5 built for i386-linux-thread-multi # perl -MNet::Cmd -we 'print Net::Cmd->VERSION' 2.26
Hey himorin, could you do some debugging and attach the results of $email->as_string before it gets sent to Email::Send? There actually shouldn't be any 8-bit characters in there.
Actually, I just tried this and in fact it does work for me. Perhaps you've edited your system to send 8-bit mail instead of quoted-printable? In that case it's not a bug in Bugzilla.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: blocking3.2+
Resolution: --- → WORKSFORME
Target Milestone: Bugzilla 3.2 → ---
(In reply to comment #8) > Actually, I just tried this and in fact it does work for me. Perhaps you've > edited your system to send 8-bit mail instead of quoted-printable? In that case > it's not a bug in Bugzilla. No. I don't edit anything related on mailing system (Bugzilla/BugMail.pm). You can view the code used in our system at http://services.mozilla.gr.jp/viewsvn/bugzilla-l10n-ja-3.2/trunk/Bugzilla/BugMail.pm?root=public&view=log (testbench of l10n -ja) http://services.mozilla.gr.jp/viewsvn/bugzilla-l10n-ja-3.2/branches/bugjp/Bugzilla/BugMail.pm?root=public&view=log (actually used code in Bugzilla-jp site) # And,,, i forgot that Bugzilla 3.2RC sends quoted-printable mail :-p
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Attached file result as text
mmm, is this related on bug 405453?
Ah, yes, it's the same bug.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: