From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Copying and pasting Cyrillic text between Emacs and other apps Date: Wed, 28 Jan 2004 02:55:14 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <36b165a.0401271516.c68fa38@posting.google.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1075276651 24863 80.91.224.253 (28 Jan 2004 07:57:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2004 07:57:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 28 08:57:19 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlkZa-0004VO-01 for ; Wed, 28 Jan 2004 08:57:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlkZ2-000419-Dx for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Jan 2004 02:56:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AlkYj-0003zu-Kj for help-gnu-emacs@gnu.org; Wed, 28 Jan 2004 02:56:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlkYC-0003sS-Gx for help-gnu-emacs@gnu.org; Wed, 28 Jan 2004 02:56:23 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlkYC-0003sN-8h for help-gnu-emacs@gnu.org; Wed, 28 Jan 2004 02:55:52 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.24) id 1AlkXa-0007Ma-WB for help-gnu-emacs@gnu.org; Wed, 28 Jan 2004 02:55:14 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on 28 Jan 2004 08:27:22 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16436 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16436 > Date: 28 Jan 2004 08:27:22 +0200 > From: Eli Zaretskii > > My impression is that decoding of clipboard text is not the problem. > Rather, I'm guessing that Emacs fetches the clipboard text in a way > that forces Windows to try to translate it to the current system > codepage, and that this translation attempt replaces all Cyrillic > characters with question marks. The Windows XP clipboard viewer, for > example, does show the Cyrillic text from the clipboard correctly. So > it sounds like there is a way to fetch the text from the clipboard, > it's just that Emacs somehow doesn't do it right. After some googling around, it seems that Emacs should use CF_UNICODETEXT type in clipboard operations, instead of CF_TEXT that it uses now.