From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Fran=E7ois?= Gannaz Newsgroups: gmane.emacs.help Subject: Re: two utf-8 questions Date: Sun, 29 Jan 2006 10:50:14 +0100 Message-ID: <20060129095014.GC4918@free.fr> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138533435 28093 80.91.229.2 (29 Jan 2006 11:17:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 11:17:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 12:17:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3AYK-0006kA-6e for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 12:17:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3AbC-00072a-NG for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 06:20:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F39Ht-0000j3-3z for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 04:56:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F39Hr-0000i0-39 for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 04:55:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F39Hq-0000hj-2h for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 04:55:58 -0500 Original-Received: from [194.158.96.107] (helo=relay-av.club-internet.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F39Fw-0003Pj-N7 for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 04:54:00 -0500 Original-Received: from pandion (d01v-213-44-194-8.d4.club-internet.fr [213.44.194.8]) by relay-av.club-internet.fr (Postfix) with ESMTP id B331A25607 for ; Sun, 29 Jan 2006 10:52:56 +0100 (CET) Original-Received: from zamansky by pandion with local (Exim 4.52) id 1F39CI-0001S2-7A for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 10:50:14 +0100 Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32896 Archived-At: Le sam 28 jan 19:30, B. T. Raven a =E9crit : > 1) >=20 > Even though the following is in my .emacs: >=20 > (setq default-buffer-file-coding-system 'utf-8) >=20 > when I type 'C-x ret f' I see the prompt: >=20 > Coding system for visited file (default, nil) instead of (default, utf-= 8) >=20 > There are contexts where I need to specify utf-8 here, or else the file > won't be saved in the correct format. This seems to be true even if the > file header ;; -*- coding: utf-8 -*- is present. Why is this? Emacs'support of utf-8 is still a bit mysterious to me. You might try a few other settings: (setq-default enable-multibyte-characters t) (setq locale-coding-system 'utf-8) (setq coding-category-list '(coding-category-utf-8 coding-category-iso-8-1 coding-category-iso-8-2 coding-category-iso-7-tight coding-category-iso-7 coding-category-iso-7-else coding-category-iso-8-else coding-category-sjis coding-category-utf-16-le coding-category-utf-16-be coding-category-emacs-mule coding-category-raw-text coding-category-big5 coding-category-ccl coding-category-binary)) Have you also tried to see what happened without your init file (run "emacs -q") and then evaluating your utf-8 settings? There might be some package you use that breaks the unicode support. > 2) >=20 > Has it been pretty much decided that copypasting Unicode using the > clipboard between emacs and MS apps is impossible for OS versions earli= er > than W2000? Even though most of what I read on emacs-devel is Greek to = me, > I try to glean whatever I can from postings relating to w32. After many > months of lurking there I am beginning to suspect that some of the > following settings are particularly inappropriate: >=20 > (set-language-environment 'UTF-8) > (set-default-coding-systems 'utf-8) > (setq file-name-coding-system 'utf-8) > (setq default-buffer-file-coding-system 'utf-8) > (setq coding-system-for-write 'utf-8) > (set-keyboard-coding-system 'utf-8) > (set-terminal-coding-system 'utf-8) > (set-clipboard-coding-system 'utf-8) > (set-selection-coding-system 'utf-8) > (prefer-coding-system 'utf-8) > (modify-coding-system-alist 'process > "[cC][mM][dD][pP][rR][oO][xX][yY]" 'utf-8-dos) >=20 > What could the clipboard and selection variables be set to in order to > give me a better chance of copypasting Unicode successfully? I don't know well the Windows world, but I'm sure that win98 and earlier don't handle unicode. Of course, some apps can use utf-8, but the system won't be able to handle this. For other OS like winME, I have no clue. Is it even possible to copypaste unicode between ms apps ? -- Fran=E7ois Gannaz