Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 853528 Details for
Bug 1054082
Could not raise Legal flag with non english character
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH] 1054082 - general: encode to utf8 if err in mimetext
0001-1054082-general-encode-to-utf8-if-err-in-mimetext.patch (text/plain), 1.49 KB, created by
Igor Gnatenko
on 2014-01-22 00:34:51 UTC
(
hide
)
Description:
[PATCH] 1054082 - general: encode to utf8 if err in mimetext
Filename:
MIME Type:
Creator:
Igor Gnatenko
Created:
2014-01-22 00:34:51 UTC
Size:
1.49 KB
patch
obsolete
>From 75005140fd6d1c18fa9770c88666e56db21cb5af Mon Sep 17 00:00:00 2001 >From: Igor Gnatenko <i.gnatenko.brain@gmail.com> >Date: Wed, 22 Jan 2014 04:32:57 +0400 >Subject: [PATCH] 1054082 - general: encode to utf8 if err in mimetext > >Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1054082 >Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> >--- > coprs_frontend/coprs/views/coprs_ns/coprs_general.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py >index 1973ae5..26e6a8f 100644 >--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py >+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py >@@ -298,7 +298,10 @@ def copr_legal_flag(username, coprname): > navigate_to = "\nNavigate to http://%s%s" % (hostname, flask.url_for('admin_ns.legal_flag')) > contact = "\nContact on owner is: %s <%s>" % (username, copr.owner.mail) > reported_by = "\nReported by %s <%s>" % (flask.g.user.name, flask.g.user.mail) >- msg = MIMEText(form.comment.data + navigate_to + contact + reported_by) >+ try: >+ msg = MIMEText(form.comment.data + navigate_to + contact + reported_by, "plain") >+ except UnicodeEncodeError: >+ msg = MIMEText(form.comment.data.encode('utf-8') + navigate_to + contact + reported_by, "plain", "utf-8") > msg['Subject'] = 'Legal flag raised on %s' % coprname > msg['From'] = 'root@%s' % hostname > msg['To'] = ', '.join(send_to) >-- >1.8.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1054082
: 853528