From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: two utf-8 questions Date: Sun, 05 Feb 2006 23:14:30 -0500 Organization: Bell Sympatico Message-ID: <87fymxgmgg.fsf-monnier+gnu.emacs.help@gnu.org> References: <87slr0kp0b.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139200613 4512 80.91.229.2 (6 Feb 2006 04:36:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2006 04:36:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 05:36:50 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 1F5y7M-0001ma-3e for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Feb 2006 05:36:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F5y7L-0002WJ-HS for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Feb 2006 23:36:47 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.berkeley.edu!ucberkeley!news.glorb.com!wns14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:jTvbO+b+m71JwibF2ExHtP0G0mg= Original-Lines: 30 Original-NNTP-Posting-Host: 67.71.25.142 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1139199271 67.71.25.142 (Sun, 05 Feb 2006 23:14:31 EST) Original-NNTP-Posting-Date: Sun, 05 Feb 2006 23:14:31 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:137398 Original-To: help-gnu-emacs@gnu.org 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:33023 Archived-At: > Apparently the clipboard and selection coding systems affect the > locale-coding-system value which shows as iso-8859-1. Still, a buffer > that correctly shows unicode glyphs and which has -u in the mode line > should be saved with the utf-8 encoding. The -u just says "this file will be saved in utf-8 if all goes well". But if the buffer contains chars which Emacs doesn't know how to save in utf-8, it will use something else (and update the mode line correspondingly). > When I issue C-x C-s, What happened at that step: did it complain? Did the "-u" part change? If not, then the file was properly saved using the utf-8 encoding. > C-x k, and then C-x C-f with the same file name, the utf-8 encoding has > been lost. You mean that utf-8 encoding in the file is not properly recognized and the non-ascii chars appear as "garbage"? That sounds like a bug I don't know, or some special case due to special unencodable bytes in your original buffer. Give us more hard data (file name, file contents, ...). And start by removing most of your .emacs munging. Just keep: (set-language-environment 'UTF-8) Stefan