* UTF-8 clipboard problem
@ 2006-03-06 12:39 Tonguc Yumruk
2006-03-08 14:17 ` Peter Dyballa
0 siblings, 1 reply; 2+ messages in thread
From: Tonguc Yumruk @ 2006-03-06 12:39 UTC (permalink / raw)
Hi,
I'm using GNU Emacs 21.4a on Debian GNU/Linux Sarge. My systems
default locale is tr_TR.UTF-8. My settings about coding is like that:
(set-keyboard-coding-system 'utf-8) (custom-set-variables ;;;
'(current-language-environment "UTF-8") '(default-input-method
"rfc1345") ;;; )
M-x set-clipboard-coding-system RET utf-8 M-x
set-selection-coding-system RET utf-8
With these settings, I cannot copy/paste utf-8 text between Emacs and
other applications. For example when I copy some text from Firefox and
paste it in Emacs, it looks like that:
Original word: tıklama Copied&pasted: t^[$(C)%^[(Bklama
(Actually ^[ was a single escape character, but gnus complained about
it, being unprintable)
When I try to copy from emacs, and paste to other applications,
something stranger happens. The applications paste the UTF-8 encoded
Turkish characters as if they are pasted to a iso-8859-1 encoded file
(With Turkish characters replaced by some 2 character utf-8
representation).
Other applications just work fine within themselves, for example I can
copy&paste between Firefox and Gedit without any problems.
Thanks.
--
Love Respect GNU/Linux
########################################################################
[End of diatribe. We now return you to your regularly scheduled
programming...]
-- Larry Wall in Configure from the perl distribution
########################################################################
Tonguç Yumruk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: UTF-8 clipboard problem
2006-03-06 12:39 UTF-8 clipboard problem Tonguc Yumruk
@ 2006-03-08 14:17 ` Peter Dyballa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2006-03-08 14:17 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 06.03.2006 um 13:39 schrieb Tonguc Yumruk:
> With these settings, I cannot copy/paste utf-8 text between Emacs and
> other applications. For example when I copy some text from Firefox and
> paste it in Emacs, it looks like that:
>
> Original word: tıklama Copied&pasted: t^[$(C)%^[(Bklama
Does this help?
** In Emacs running on the X window system, the default value of
`selection-coding-system' is now `compound-text-with-extensions'.
If you want the old behavior, set selection-coding-system to
compound-text, which may be significantly more efficient. Using
compound-text-with-extensions seems to be necessary only for decoding
text from applications under XFree86 4.2, whose behavior is actually
contrary to the compound text specification.
--
Greetings
Pete
"They're putting dimes in the hole in my head to see the change in me."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-08 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-06 12:39 UTF-8 clipboard problem Tonguc Yumruk
2006-03-08 14:17 ` Peter Dyballa
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).