emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copying then yanking Czech 'e' character fails


From: Chris Moore
Subject: copying then yanking Czech 'e' character fails
Date: Wed, 22 Nov 2006 11:13:02 +0100

Prepare a file containing a Czech "e-with-a-hook" character (followed
by a newline) in Windows 1250 encoding:

  $ printf "\354\n" > /tmp/file.txt

Ensure DISPLAY is set, and run Emacs:

  $ emacs -Q

Tell Emacs to prefer the Windows 1250 coding system:

  M-x eval-expression RET (prefer-coding-system 'windows-1250) RET

Find the file:

  C-x C-f /tmp/file.txt RET

Note that the \354 character is correctly displayed as a lower-case
'e' with a small 'v' shaped accent over the top of it.

Copy the line:

  C-x h M-w

Yank a copy of the line into the same buffer:

  C-y

Note that the yanked copy is different than the text we copied.  It
shows up as a '?' character.

Undo the yank:

  C-x u

Copy the line as a *rectangle*:

  M-< M-SPC C-e C-x r k

Paste the killed rectangle a few times:

  C-x r y C-x r y

Notice that now the 'e' character has been copied correctly.

This bug only shows up if I use the X version of Emacs.  Running
"emacs -nw" 'fixes' it.

Before copying the 'e' character, it is:

  character: ? (331835, #o1210073, #x5103b, U+011B)
    charset: mule-unicode-0100-24ff (Unicode characters of the range 
U+0100..U+24FF.)
 code point: #x20 #x3B
     syntax: w  which means: word
   category: l:Latin
buffer code: #x9C #xF4 #xA0 #xBB
  file code: #xEC (encoded by coding system windows-1250-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Bold-R-Normal--13-120-75-75-C-70-ISO10646-1 (#x11B)

After pasting the copied character, it is:

  character: ? (63, #o77, #x3f, U+003F)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x3F
     syntax: .  which means: punctuation
   category: a:ASCII l:Latin
buffer code: #x3F
  file code: #x3F (encoded by coding system windows-1250)
    display: by this font (glyph code)
     -Misc-Fixed-Bold-R-Normal--13-120-75-75-C-70-ISO8859-1 (#x3F)






In GNU Emacs 22.0.91.4 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2006-11-19 on chrislap
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--with-gtk' '--with-xpm' '--with-jpeg' 
'--with-png' '--with-gif''

Important settings:
  value of $LC_ALL: en_GB.UTF-8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  show-paren-mode: t
  display-time-mode: t
  iswitchb-mode: t
  dynamic-completion-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
T h e SPC f u n c t i o n s SPC w h i c h SPC a l l 
o w SPC y o u SPC t o SPC v i e w SPC r e c e n t SPC 
k e y s t r o k e s SPC h a v e SPC b e e n C-j h i 
d d e n SPC b y SPC j - s h e l l , SPC t o SPC p r 
o t e c t SPC p a s s w o r d s SPC e n t e r e d SPC 
i n SPC s h e l l SPC b u f f e r s .

Recent messages:
kill-line: End of buffer
Mark set
Auto-saving...done
Quit [2 times]
Making completion list...
uncompressing printf.1.gz...done
WoMan formatting buffer...done in 0 seconds
Quit
Mark activated
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]