Bug 1951833

Summary: [evolution] Print to file fails due to invalid characters
Product: [Fedora] Fedora Reporter: Michel Lind <michel>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: caillon+fedoraproject, lucilanga, mcrha, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 06:57:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of printing to file error without changing the generated filename
none
screenshot of printing to file error with a shorter filename none

Description Michel Lind 2021-04-20 23:30:36 UTC
Created attachment 1773963 [details]
screenshot of printing to file error without changing the generated filename

Description of problem:
When printing to file, the generated path seems to be surrounded by some Unicode characters, causing the write to fail because the path does not exist

Version-Release number of selected component (if applicable):
evolution-3.38.4-1.fc33.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Try printing an email and choose "Print to file"
2. Override the filename and try again


Actual results:
Printing fails, e.g. for this message from test-announce

The printer replied “Error opening file â/home/michel/Documents/20210418050327_[Test-Announce]_Fedora_34_Branched_20210418.n.0_nightly_compose_nominated_for_testing.pdfâ: No such file or directory”.

The printer replied “Error opening file â/home/michel/Documents/20210418050327_testing.pdfâ: No such file or directory”.

Expected results:
The PDF gets saved to disk

Additional info:

Comment 1 Michel Lind 2021-04-20 23:31:03 UTC
Created attachment 1773964 [details]
screenshot of printing to file error with a shorter filename

Comment 2 Michel Lind 2021-04-20 23:37:10 UTC
This reproduces on Fedora 34's evolution-3.40.0-1.fc34. Printing to file from gedit is not affected and works fine.

Comment 3 Michel Lind 2021-04-20 23:38:03 UTC
PS on F34, I also tried launching evolution with `LANG=C evolution` in case it's some bizarre encoding issue, but that did not have any effect

Comment 4 Milan Crha 2021-04-21 06:57:07 UTC
Thanks for a bug report. This is a known issue in WebKitGTK. Please see bug #1896902 comment #1 for a workaround.

*** This bug has been marked as a duplicate of bug 1896902 ***