Bug 1139704 - caff handles unicode in configuration file incorrectly
Summary: caff handles unicode in configuration file incorrectly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pgp-tools
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Jochen Schmitt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-09 13:25 UTC by Petr Šabata
Modified: 2014-11-03 05:23 UTC (History)
1 user (show)

Fixed In Version: pgp-tools-1.1.5-6.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-19 10:12:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A quick and dirty From/Sender fix (991 bytes, patch)
2014-09-09 13:27 UTC, Petr Šabata
no flags Details | Diff

Description Petr Šabata 2014-09-09 13:25:17 UTC
Description of problem:
Unicode strings in ~/.caffrc are mishandled.  This typically affects $CONFIG{'owner'} but could possibly break other options too.

Version-Release number of selected component (if applicable):
pgp-tools-1.1.5-4.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Use unicode characters in %CONFIG, e.g. $CONFIG{'owner'} = 'Petr Šabata';
2. Sign a key and send the mail
3. The recipient sees malformed name in the From/Sender fields.

Actual results:
From: Petr Å abata
(Petr =?UTF-8?Q?Petr=20=C3=85=C2=A0abata?=)

Expected results:
From: Petr Šabata
(Petr =?utf-8?Q?Petr=20=C5=A0abata?=)

Additional info:
My configuration file is in utf8.  My locale is en_US.utf8.
The probable cause is the %CONFIG values are double-utf8-encoded.

Comment 1 Petr Šabata 2014-09-09 13:27:44 UTC
Created attachment 935699 [details]
A quick and dirty From/Sender fix

This works; however, a more elegant solution would be better.

Comment 2 Fedora Update System 2014-09-10 14:48:27 UTC
pgp-tools-1.1.5-6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/pgp-tools-1.1.5-6.fc21

Comment 3 Fedora Update System 2014-09-10 14:49:03 UTC
pgp-tools-1.1.5-6.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pgp-tools-1.1.5-6.fc20

Comment 4 Fedora Update System 2014-09-11 00:54:41 UTC
Package pgp-tools-1.1.5-6.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pgp-tools-1.1.5-6.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10627/pgp-tools-1.1.5-6.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-09-19 10:12:09 UTC
pgp-tools-1.1.5-6.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-11-03 05:23:18 UTC
pgp-tools-1.1.5-6.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.