unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [r.kubiak@guests.ipipan.gda.pl: Copy-paste between pretest Emacs 22 and other GNU/Linux programs]
@ 2007-01-15 14:58 Richard Stallman
  2007-01-16  1:51 ` Kenichi Handa
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2007-01-15 14:58 UTC (permalink / raw)
  Cc: emacs-devel

Would people please take a look at this?

------- Start of forwarded message -------
Date: Sun, 14 Jan 2007 19:11:05 +0100
From: Ryszard Kubiak <r.kubiak@guests.ipipan.gda.pl>
MIME-Version: 1.0
To: bug-gnu-emacs@gnu.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Cc: Wlodek Bzyl <matwb@univ.gda.pl>
Subject: Copy-paste between pretest Emacs 22 and other Linux programs
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

Hello Everybody,

I would like to report that copying a text with Polish national
letters from an X-based program (like: xterm, gnome terminal,
kde terminal, thudirbird, firefox) and pasting it into Emacs
does not work properly within an environment which is utf-8,
both in the operating system and in Emacs.

If you can see the following eighteen Polish letters

??????Ó??????????ó

properly in your e-mail client, which you should if you have set
utf-8 as your basic encoding, then could you copy them into Emacs,
also configured to work with utf-8? Do you see them right? If so,
I would be happy to know all of your settings. My related .emacs
settings are quoted below.

Currently, I am running a pretest Emacs version 22.00.92.1, installed
from a tarball. Previously, I had version 22.00.52.1, compiled from
CVS sources. I am running Emacs under Linux Fedora 5. In both these
versions the Polish characters get mangled when they are copied into
Emacs. Interestingly, copying Polish characters from Emacs to other
X-based utilities works fine. Also, I do not experience problems with
editing Polish texts, whether I am using iso-latin-2 or utf-8 encoding.

As the problem is somewhat technical, can anybody who knows the 
respective fragments of Emacs write my in private, to decide
whether it's really a bug in Emacs or just a matter of wrong
settings within my .emacs. Of course, I may supply any necessary
information about my installation.

Since unicode is now the core issue of Emacs develpmpent, then if
what I have described is result of a bug then it has to be removed.

Cheers,
Rysiek

(codepage-setup 1250)
(set-language-info-alist "pl"
     '((documentation . t)
     (sample-text . "Pójd?, ki?-?e t? chmurno?? w g??b flaszy")
     (tutorial . "TUTORIAL.pl")
     (unibyte-display . iso-8859-2)
     (unibyte-syntax . "latin-2")
     (nonascii-translation . latin-iso8859-2)
     (input-method . "polish-slash")
     (coding-priority  utf-8  iso-8859-2 cp1250-dos)
     (coding-system  utf-8  iso-8859-2 cp1250-dos )
     (charset ascii latin-iso8859-2))
(set-language-environment "pl")
(set-selection-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)

The font I am using is:
- -misc-fixed-medium-r-normal-*-15-*-*-*-*-*-iso10646-1

I am also using cua-mode, with this customization setting:

  '(cua-mode t nil (cua-base))

Interestingly, when I copy the Polish letters from another
X-based program into Emacs, the following messages are generated:

Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done

Do these have anything to do with East European languages?




_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [r.kubiak@guests.ipipan.gda.pl: Copy-paste between pretest Emacs 22 and other GNU/Linux programs]
  2007-01-15 14:58 [r.kubiak@guests.ipipan.gda.pl: Copy-paste between pretest Emacs 22 and other GNU/Linux programs] Richard Stallman
@ 2007-01-16  1:51 ` Kenichi Handa
  2007-01-16  7:36   ` Ryszard Kubiak
  0 siblings, 1 reply; 3+ messages in thread
From: Kenichi Handa @ 2007-01-16  1:51 UTC (permalink / raw)
  Cc: r.kubiak, matwb, emacs-devel

In article <E1H6THy-0006KY-3k@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:

> Would people please take a look at this?

> ------- Start of forwarded message -------
> Date: Sun, 14 Jan 2007 19:11:05 +0100
> From: Ryszard Kubiak <r.kubiak@guests.ipipan.gda.pl>
> To: bug-gnu-emacs@gnu.org
> Subject: Copy-paste between pretest Emacs 22 and other Linux programs
[...]
> I would like to report that copying a text with Polish national
> letters from an X-based program (like: xterm, gnome terminal,
> kde terminal, thudirbird, firefox) and pasting it into Emacs
> does not work properly within an environment which is utf-8,
> both in the operating system and in Emacs.

> If you can see the following eighteen Polish letters

> ??????Ó??????????ó

> properly in your e-mail client, which you should if you have set
> utf-8 as your basic encoding, then could you copy them into Emacs,
> also configured to work with utf-8? Do you see them right? If so,
> I would be happy to know all of your settings. My related .emacs
> settings are quoted below.

Please try to comment out the following line in your .emacs:

(set-selection-coding-system 'utf-8)

Doesn't it fix the problem?

Anyway, as the above line should not cause a problem, I'm
now invetigating how to fix it.

---
Kenichi Handa
handa@m17n.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [r.kubiak@guests.ipipan.gda.pl: Copy-paste between pretest Emacs 22 and other GNU/Linux programs]
  2007-01-16  1:51 ` Kenichi Handa
@ 2007-01-16  7:36   ` Ryszard Kubiak
  0 siblings, 0 replies; 3+ messages in thread
From: Ryszard Kubiak @ 2007-01-16  7:36 UTC (permalink / raw)
  Cc: matwb, rms, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1613 bytes --]

Hi Kenichi,

> Please try to comment out the following line in your .emacs:
> 
> (set-selection-coding-system 'utf-8)
> 
> Doesn't it fix the problem?

O yes, it does! A little problem remains, however.
Although I can see the nine Polish letters as they
should look, one of them, lslash, has a different code
than it should. Please, have a look at the little screen
shot enclosed to this letter and at what Emacs reports
about the two characters.

Many thanks to Richard and to You for so quick response.

Rysiek

For the proper Polish lslash, typed into Emacs, the editor
reports:

   character: ł (331874, #o1210142, #x51062, U+0142)
     charset: mule-unicode-0100-24ff
              (Unicode characters of the range U+0100..U+24FF.)
  code point: #x20 #x62
      syntax: w 	which means: word
    category: l:Latin
buffer code: #x9C #xF4 #xA0 #xE2
   file code: #xC5 #x82 (encoded by coding system utf-8)
     display: by this font (glyph code)
      -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO10646-1 (#x142)

There are text properties here:
   fontified            t

For the character similar to our lslash Emacs reports:

   character: ł (70825, #o212251, #x114a9, U+0142)
     charset: korean-ksc5601 (KSC5601 Korean Hangul and Hanja: ISO-IR-149.)
  code point: #x29 #x29
      syntax: _ 	which means: symbol
    category: h:Korean
buffer code: #x93 #xA9 #xA9
   file code: #xC5 #x82 (encoded by coding system utf-8)
     display: by this font (glyph code)
 
-Daewoo-Gothic-Medium-R-Normal--16-120-100-100-C-160-KSC5601.1987-0 (#x2929)

There are text properties here:
   fontified            t


[-- Attachment #2: CopyPaste.png --]
[-- Type: image/png, Size: 26307 bytes --]

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-16  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 14:58 [r.kubiak@guests.ipipan.gda.pl: Copy-paste between pretest Emacs 22 and other GNU/Linux programs] Richard Stallman
2007-01-16  1:51 ` Kenichi Handa
2007-01-16  7:36   ` Ryszard Kubiak

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).