From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhang Wei Newsgroups: gmane.emacs.devel Subject: Re: This GB18030 encoding file will be chaos in Emacs Unicode 2 even %% -*- coding: gb18030; -*- is used. Date: Tue, 05 Dec 2006 20:36:39 +0800 Message-ID: References: <20061205114011.GA16948@localdomain> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165322284 4104 80.91.229.10 (5 Dec 2006 12:38:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Dec 2006 12:38:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 05 13:38:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GrZYe-00080q-8y for ged-emacs-devel@m.gmane.org; Tue, 05 Dec 2006 13:38:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrZYd-00028P-Nl for ged-emacs-devel@m.gmane.org; Tue, 05 Dec 2006 07:37:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GrZXy-0001xD-Ti for emacs-devel@gnu.org; Tue, 05 Dec 2006 07:37:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GrZXx-0001wI-4V for emacs-devel@gnu.org; Tue, 05 Dec 2006 07:37:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrZXw-0001wD-Uc for emacs-devel@gnu.org; Tue, 05 Dec 2006 07:37:16 -0500 Original-Received: from [64.233.162.227] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GrZXw-0005tn-V1 for emacs-devel@gnu.org; Tue, 05 Dec 2006 07:37:17 -0500 Original-Received: by nz-out-0102.google.com with SMTP id r28so1969421nza for ; Tue, 05 Dec 2006 04:37:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:subject:references:from:mail-followup-to:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=aj9gOtjUfdlNlWHlusL55PHuYUNpRGhZGmgM4jhFt6/kxD6lXwAcNXeQ1lT5dUy81vlIhnePxswePzxANgC9v8FjLBvGfzqeMbAPDXvwrg8Qicx8rHzfUZcTyR5hHBILTjpJATaS5+PV4qsgXFx1BzC9LhCHcXoWh4VyJNp+iZM= Original-Received: by 10.35.96.11 with SMTP id y11mr17584978pyl.1165322236084; Tue, 05 Dec 2006 04:37:16 -0800 (PST) Original-Received: from brep ( [59.66.78.86]) by mx.google.com with ESMTP id v56sm26735483pyh.2006.12.05.04.37.10; Tue, 05 Dec 2006 04:37:15 -0800 (PST) Original-To: Hongyi Zhao Mail-Followup-To: Hongyi Zhao , emacs-devel@gnu.org In-Reply-To: <20061205114011.GA16948@localdomain> (Hongyi Zhao's message of "Tue\, 5 Dec 2006 19\:40\:11 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63312 Archived-At: Hongyi Zhao writes: > I've installed the Emacs from its latest CVS, this is, your patch on > gbk-gb18030 has included in it. But now, I can't display some files > correctly when encoding with gb18030, the attacted is a sample > file. So I use the variable you told me, put the following at the > first line of my tex file: > > %% -*- coding: gb18030; -*- > > But the problem is still the same! No problem opening this file, except Emacs didn't recognize the end-of-line format correctly, revert the buffer with "C-x RET r dos" will solve the problem, if you don't like reverting buffer everytime, just try this: %% -*- coding: gb18030-dos; -*-