On 2004 12 08 (Wednesday) 16:19, P@xxxxxxxxxxxxxx wrote: > Doncho N. Gunchev wrote: > > Hello, > > when a shell/python script reads input from the user in konsole and > > gnome-terminal it I enter non-ascii characters (ex: "ÐÑÐÐÐ", "Test" in > > English) backspace does not work correct. For example: > > --- cut --- > > $ echo -n "Test: "; read a; echo "[$a]" > > Test: ÐÑÐÐÐ > > [ You can paste this, then hit backspace 4 times to get the next line ] > > Test: Ð > > [ Press Enter here and you get ] > > [ÐÑÐ] > > $ _ > > --- cut --- > > If I erase one character I get '[ÐÑÐÐï' > > Text editing in bash and mc works, but in python 'starts to erase' > > the '>>> ' prompt. In xterm instead of cyrilic letters I get spaces. > > I wanted to enter a bug, but I don't know against what to. Looks like > > backspace erases single bytes, while these letters consist of 2. Can > > someone direct me and confirm it? > > > > Both python and bash use readline to do line editing. > 4.3-13 is the latest in rawhide but version 5.0 is available > which seems to fix the issues you mention. Search for > multibyte in: http://cnswww.cns.cwru.edu/php/chet/readline/CHANGES > Thanks, bug # 142265 entered: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=142265 -- Regards, Doncho N. Gunchev Registered Linux User #291323 at counter.li.org GPG-Key-ID: 1024D/DA454F79 http://pgp.mit.edu Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79