I have locale 'de_DE.utf8', which works really fine in KDE and also in konsole, it displays german umlauts and all that correctly and works fine, until: When entering 'su -' (or starting the konsole in su-mode), the environment is somehow adjusted badly: When entering umlauts, I can backspace more often than I entered characters, linebreaks don't appear properly anymore and the output is pretty garbled in any case. Sourcing /etc/profile again solves this issue. The problem does not happen with standard-su. It happens with konsole from kde 3.3.2 and 3.4.0_beta2. Deleting konsole-config-files from both root and user does not solve the problem. I'm not sure whether this is gentoo-specific or not, that's why I reported it here first (I hope that's correct). Reproducible: Always Steps to Reproduce: 1. open 'konsole --type su' 2. enter some german umlaut (
I have locale 'de_DE.utf8', which works really fine in KDE and also in konsole, it displays german umlauts and all that correctly and works fine, until: When entering 'su -' (or starting the konsole in su-mode), the environment is somehow adjusted badly: When entering umlauts, I can backspace more often than I entered characters, linebreaks don't appear properly anymore and the output is pretty garbled in any case. Sourcing /etc/profile again solves this issue. The problem does not happen with standard-su. It happens with konsole from kde 3.3.2 and 3.4.0_beta2. Deleting konsole-config-files from both root and user does not solve the problem. I'm not sure whether this is gentoo-specific or not, that's why I reported it here first (I hope that's correct). Reproducible: Always Steps to Reproduce: 1. open 'konsole --type su' 2. enter some german umlaut (ä, ö, ü), then press backspace twice. or 1. konsole 2. su - 3. enter some german umlaut (ä, ö, ü), then press backspace twice. Actual Results: the prompt is deleted as well Expected Results: should only delete as much characters as entered Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 14:28:05)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -m3dnow -mmmx" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer -m3dnow -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="ftp://mirror.nutsmaas.nl/gentoo/ http://mirror.isp.net.au/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" LANG="de_DE.utf8" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://10.0.0.1/gentoo-portage" USE="x86 3dnow X aalib acpi alsa apache2 avi berkdb bitmap-fonts crypt cups divx4linux dvd encode f77 fam fbcon flac font-server foomaticdb fortran gdbm gif gstreamer gtk2 guile icq imagemagick jabber java jpeg kde kdeenablefinal libg++ libwww mad maildir mbox mikmod mmx mpeg mysql ncurses nls nptl offensive oggvorbis opengl oscar pam pda pdflib perl pic png python qt quicktime readline samba sdl spell ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb videos xine xml2 xv xvid zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
There are useful information in the discussion of a related problem here: http://bugs.kde.org/show_bug.cgi?id=83236 there also useful tips, like using "stty -a" to see if the terminal supports utf8, but I'm not much into these things, and I can't see how can that be related to "su -" setting an environment variable...
I have the same problem, though it is not KDE specific. I currently use xfce4 with a normal xterm-200. After entering an umlaut in the console, I can also delete characters that should not be deleteable (e.g. the prompt). An additional feature in vim is that after I entered an umlaut, a space gets automatically inserted. This leads to some strange results in composing mail, because you never know if the space after the text really exists or not. The biggest problem are capital umlauts: they do not even get displayed in vim. For producing umlauts I currently use us_intl with deadkeys keyboard layout. I attached a txt file with the umlauts
I have the same problem, though it is not KDE specific. I currently use xfce4 with a normal xterm-200. After entering an umlaut in the console, I can also delete characters that should not be deleteable (e.g. the prompt). An additional feature in vim is that after I entered an umlaut, a space gets automatically inserted. This leads to some strange results in composing mail, because you never know if the space after the text really exists or not. The biggest problem are capital umlauts: they do not even get displayed in vim. For producing umlauts I currently use us_intl with deadkeys keyboard layout. I attached a txt file with the umlauts äöüÄÖÜ as they appear after I typed them in vim and with a second row as they are saved. Maybe you can help? The KDE-bug resolution with exporting LC_ALL=en_US.ISO-8859-1 or even LC_ALL=C does not work for me. If the patch for stty really solves this problem (I didn't test it), then this bug would be for coreutils since coreutils owns stty. emerge -pv coreutils: sys-apps/coreutils-5.2.1-r5 +acl -build -debug +hardened +nls (-selinux) -static (-uclibc) This seems to be a problem with xterm too, the bug there is (as also mentioned in the kde-bug): https://bugs.freedesktop.org/show_bug.cgi?id=1578 Although my xterm is compiled with unicode. emerge -pv xterm: x11-terms/xterm-200-r1 -Xaw3d -debug -toolbar +truetype +unicode So maybe a bug for xterm as well? If I use cat to display the file I generated with vim, the characters all display all right. But if I use less, the output becomes even more garbled. If I use vim, the characters do not even get displayed, I just see signs like spaces surrounded by dots (litte rectangles with emphasised outline). emerge -pv vim: app-editors/vim-6.3.068 +acl +bash-completion +cscope -debug +gpm -minimal +ncurses +nls +perl +python -ruby (-selinux) -vim-with-x P.S: This message was entered in mozilla-firefox with us_intl and the umlauts worked just fine (except for sz composed with <Alt>-<Shift>-=, but that is another bug ;) )
Created attachment 57229 [details] My view on umlauts
Reassigning, since we cannot really do much for it. Probably this could be closed as UPSTREAM until it's more clear what a correct solution would be.
Note that bug 77633 (recently solved) is connected to this one.
I'm not quite sure which update has fixed this, I suppose it's the new stable baselayout. Anyway, I'll close this as FIXED - at least for me.