Bug 4384 - U+00AD (soft hyphen) changed to space in Subject
Summary: U+00AD (soft hyphen) changed to space in Subject
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/RSSyl (show other bugs)
Version: 3.17.6
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2020-09-17 08:48 UTC by Kim B. Heino
Modified: 2020-09-25 08:33 UTC (History)
0 users

See Also:


Attachments
Screenshot with wrong rendering (41.74 KB, image/png)
2020-09-17 08:48 UTC, Kim B. Heino
no flags Details
Example feed (30.75 KB, text/xml)
2020-09-17 08:49 UTC, Kim B. Heino
no flags Details
proposed patch (494 bytes, patch)
2020-09-17 14:47 UTC, Paul
no flags Details | Diff

Description Kim B. Heino 2020-09-17 08:48:02 UTC
Created attachment 2089 [details]
Screenshot with wrong rendering

Character U+00AD (soft hyphen) in feed title is rendered as visible space (wrong) in subject line. In message body it's not visible (correct).

Example feed: https://heino.kim/hs.fi.xml

Search for title "Myrsky iskee" and look at "pääkaupunki<U+00AD>seudulle".
Comment 1 Kim B. Heino 2020-09-17 08:49:46 UTC
Created attachment 2090 [details]
Example feed

Here's example xml feed file for above screenshot
Comment 2 Paul 2020-09-17 14:47:31 UTC
Created attachment 2092 [details]
proposed patch

proposed patch.

Be aware that, even after applying this patch, your feed's Subject lines will not be rewritten. You will need to re-subscribe to the feed to see the effects of this patch.
Comment 3 Kim B. Heino 2020-09-18 13:26:58 UTC
Thanks, proposed patch seems to work. Please apply it to next Claws Mail release.
Comment 4 Paul 2020-09-25 08:33:49 UTC
now in git

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