Bug 269089 - unicode filenames are shown incorrectly unless application is launched with dbus-launch
Summary: unicode filenames are shown incorrectly unless application is launched with d...
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.6
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 23:18 UTC by Itamar Ravid
Modified: 2011-04-17 19:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Dolphin shown when launched normally (139.98 KB, image/png)
2011-03-21 23:19 UTC, Itamar Ravid
Details
Dolphin shown when launched with dbus-launch (139.27 KB, image/png)
2011-03-21 23:19 UTC, Itamar Ravid
Details

Note You need to log in before you can comment on or make changes to this bug.
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.