Bug 8740

Summary: xdg-email KDE code problem with non-UTF8 locales
Product: Portland Reporter: Kevin Krammer <kevin.krammer>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Override locale to using UTF-8 when calling KDE handler

Description Kevin Krammer 2006-10-23 13:44:15 UTC
The KDE code in xdg-email or rather KDE's mailto URI parsing gets a problem 
when we pass our UTF-8 URIs and the session's locale isn't UTF-8, because it 
assumes that the unescaped URI is actually a string in the program's locale.

No problem for systems where the locale is set to UTF-8
Comment 1 Kevin Krammer 2006-10-23 13:47:11 UTC
Created attachment 7498 [details] [review]
Override locale to using UTF-8 when calling KDE handler

Setting the locale variable LC_ALL to C.UTF-8 before calling the KDE handler
program "kmailservice" seems to work.

Tested with KMail, Evolution and Thunderbird as KDE's preferred mail client
Comment 2 Kevin Krammer 2006-10-29 10:23:08 UTC
Patch comitted

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.