Bug#562662: xterm needs locale set to properly run UTF8 version
Hello,
After some checking and searching I've found a solution for the problem:
arturcz@szczaw:~$ cat .kde/env/set-locale.sh
#!/bin/bash
export LC_CTYPE=pl_PL.UTF-8
It's up to you if you, as the maintainer of the package, will just close
the bug or if you find a solution which will be more friendly for
inexperienced users.
The background of the issue follows.
I found that critical thing for UTF8 variant of xterm is proper locale setting.
It is explitictly mentioned in uxterm(1):
Note: uxterm may produce unexpected results if the current locale is
set to one in which the UTF-8 character encoding is not supported [...]
Command saved in KDE session save file is correct:
wmCommand9=xterm -class UXTerm -title uxterm -u8 -title mutt -e mutt
but it requires proper locale setting, which is not available during
KDE startup.
Please also note, that uxterm tries to set locale is possible. But KDE
does not save the current locale setting.
At first I thought about solution like saving in session file also
environment (or, at least the locale). Or, perhaps, saving the original
command (in this case uxterm instead of spawned later xterm). But I suppose
option for setting the locale variant (with or without UTF) via GUI would be
sufficient.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kdebase depends on:
ii kde-minimal 5:55 the K Desktop Environment, minimal
kdebase recommends no packages.
Versions of packages kdebase suggests:
pn kde-l10n <none> (no description available)
-- no debconf information
--
Święta mogą być Twoje! Pakiet podstawowy już od 9,99 (bez karpia i choinki)
/yacoob/
Reply to: