If exec xterm with bash, then input some not Enligsh word, for example проверка then select this word and press middle button of the mouse, it paste проверка if press middle button again I got: ######## Reproducible: Always
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 i686) ================================================================= System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.6 Last Sync: Sat, 06 Jan 2007 07:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/evgeniy/portage /usr/portage/local/layman/nx" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X acl alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm arts bash-completion berkdb bitmap-fonts cjk cli cracklib crypt cups dlloader doc dri eds elibc_glibc emacs emboss encode esd fam fbcon firefox font-server foomaticdb fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kdexdeltas kernel_linux libg++ libwww linguas_en linguas_ru logrotate mad maildir mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spel spell spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga vorbis xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
bash 3.1_p17 readline 5.1_p4 xterm 222 xorg-x11 7.1 I can not reproduce this bug with "konsole", so I suppose this is xterm bug.
Works just fine for me w/ 223, latest bash and readline...
(In reply to comment #3) > Works just fine for me w/ 223, latest bash and readline... > I tryed xterm 223 bash 3.2_p9-r1 readline 5.2_p1 bug still here, may be the problem in utf-8 locale?
I can also reproduce bug with XTerm(223) and zsh 4.3.2 (i686-pc-linux-gnu)
(In reply to comment #0) > If exec xterm with bash, > then input some not Enligsh word, for example > проверка > then select this word and press middle button of the mouse, > it paste > проверка > if press middle button again I got: > ######## > > Reproducible: Always > The second paste not needed, if unselect selected text, then next paste will insert "#"es.
Thomas, have you seen any other similar reports to this?
see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=277832
I'm seeing similar behaviour after upgrading to xterm-225. But it much worse -copy-pasting non-latin symbols with middle mouse button _always_ inserts ##### symbols. It doesn't seems to be bash-related bug - it can be reproduced with vim and even cat ('xterm cat' for example). And, BTW, I don't use utf-locale - i have LANG=ru_RU.KOI8-R I don't remember exactly, which latest working for me version was, but after examining /usr/portage/distfiles seems that it was xterm-222. I'll try to build it to check if there's no such bug. And here's my system info: mad@sunflower ~ $ emerge --info Portage 2.1.2.7 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21 sparc64) ================================================================= System uname: 2.6.21 sparc64 sun4u Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 26 Jun 2007 01:47:01 +0000 ccache version 2.4 [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19.2-r2 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo" LANG="ru_RU.KOI8-R" LINGUAS="en en_GB ru" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa bitmap-fonts bzip2 cli cracklib cups dri dvd dvdread encode ffmpeg gif gpm gtk iconv imagemagick isdnlog jpeg libg++ mad mbox midi mudflap ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre png ppds pppd qt3 readline reflection sdl session sparc spl ssl symlink tiff truetype truetype-fonts type1-fonts unicode xml xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB ru" USERLAND="GNU" VIDEO_CARDS="mach64 mga fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Well, xterm-222 is really works for me (i build it by copying xterm-225.ebuild). I also tried newer xterm-226 and -227 (also, no changes to ebuild, simple copy), but with them bug is still here :( BTW, i noticed at the last moment - pasting in xterm-226 seems to really work fine with UTF-8 encoding, but not with KOI8-R. Any suggestions? I will try to build other versions tomorrow, to see when KOI8 pasting was broken.
The fix made in #225 assumes you're using the -k8 option (allowC1Printable resource), e.g., as set in the koi8rxterm script.
Closing as FIXED.