Bug 269089

Summary: unicode filenames are shown incorrectly unless application is launched with dbus-launch
Product: [I don't know] kde Reporter: Itamar Ravid <iravid>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Dolphin shown when launched normally
Dolphin shown when launched with dbus-launch

Description Itamar Ravid 2011-03-21 23:18:36 UTC
Version:           4.6 (using KDE 4.6.1) 
OS:                Linux

I'm experiencing a very annoying problem regarding unicode characters in filenames. It appears that non-latin characters are detected incorrectly in every KDE(/QT?) application, unless said application is run with 'dbus-launch'.

This makes for annoying results - Amarok does not detect these files, Dolphin displays incorrectly, etc.

Reproducible: Always

Steps to Reproduce:
Launch application such as Dolphin normally, navigate to folder with unicode characters.

Actual Results:  
Characters are displayed incorrectly.

Expected Results:  
Characters should be displayed correctly.

This happens on every filesystem - I've tried ext4, and NTFS (through ntfs-3g). Also, my ~/.zshrc contains:

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

However, this seems to have no effect.

I've attached two screenshots - one shows Dolphin handling these characters when launched with dbus-launch, and one shows it when launched normally.
Comment 1 Itamar Ravid 2011-03-21 23:19:04 UTC
Created attachment 58233 [details]
Dolphin shown when launched normally
Comment 2 Itamar Ravid 2011-03-21 23:19:51 UTC
Created attachment 58234 [details]
Dolphin shown when launched with dbus-launch
Comment 3 Christoph Feck 2011-03-22 00:27:27 UTC
> my ~/.zshrc

This is only executed when a shell starts, but KDE needs to know the systems' locale for every process.
Comment 4 Itamar Ravid 2011-03-23 12:29:13 UTC
Hi Chris, the problem appears when launching applications normally thru the shell as well. I've verified through the use of /proc/pid/environ that said env vars are used by the process.
Comment 5 Itamar Ravid 2011-04-17 19:08:30 UTC
Turns out Chris was right - I had to define $LANG in /etc/profile.