KDE open file dialog and accented file names

Pennguin pennguin at gmail.com
Tue Mar 27 16:39:03 BST 2012


Dnia wtorek, 27 marca 2012 09:15:48 Chusslove Illich pisze:
> > [: 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.

Thanks for pointing this out, I didn't know about it. Works flawlessly :)
___________________________________________________
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