KDE open file dialog and accented file names

Chusslove Illich caslav.ilic at gmx.net
Tue Mar 27 08:15:48 BST 2012


> [: pennguin :]
> I run the app with LANG variable set to C (LANG=C kwrite). But is this
> proper method for quick language change?

It is not. The input-output encoding of C locale is plain ASCII, so any non-
ASCII encodings are going to cause garbage. Hence the problem with file
names that you see (they are probably stored as UTF-8 in the file system).

The correct way to change a language through environment variable for an
ordinary Gettext-based program is through LANGUAGE. This takes only the
language code, not the full locale name. E.g. LANGUAGE=en_US.

KDE programs however respect LANGUAGE only if the language has not been set
through System Settings. If it was, then one has to use KDE_LANG variable
instead.

-- 
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20120327/0363befe/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list