From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: can not decode 0x93 and 0x94 to correct char Date: Fri, 28 Sep 2007 09:50:47 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190987869 12968 80.91.229.12 (28 Sep 2007 13:57:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 13:57:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "William Xue" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 28 15:57:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IbGLX-0001Mf-4u for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 15:57:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbGLT-0005G4-SM for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 09:57:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbGLQ-0005Fc-8x for emacs-devel@gnu.org; Fri, 28 Sep 2007 09:57:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbGLO-0005FO-6u for emacs-devel@gnu.org; Fri, 28 Sep 2007 09:57:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbGLO-0005FL-1c for emacs-devel@gnu.org; Fri, 28 Sep 2007 09:57:26 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbGLN-0001HW-K2 for emacs-devel@gnu.org; Fri, 28 Sep 2007 09:57:25 -0400 Original-Received: from pastel.home ([74.12.208.240]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070928135724.PRBU7990.tomts36-srv.bellnexxia.net@pastel.home> for ; Fri, 28 Sep 2007 09:57:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A9EAF7F47; Fri, 28 Sep 2007 09:50:47 -0400 (EDT) In-Reply-To: (William Xue's message of "Fri\, 28 Sep 2007 12\:33\:23 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:79994 Archived-At: > Could you confirm the issue? > version: GNU Emacs 23.0.0.1 > platform: winxp + sp2 > Steps: > 1. emacs -q > 2. open char_err_clip.c > 3. \223GPL License\224 > please check screen shots for detail. The problem here seems to be the default coding system used by Emacs. Apparently it uses something like latin-1 rather than something like cp1252. I don't know enough about how such things are specified in general (outside of Emacs) under w32 to be able to help any further, but all I know is that maybe Emacs should try and figure out that your default coding system should be cp1252. Maybe the problem is that Emacs doesn't try to do it, or maybe ti doesn't know how to do it, or maybe it does it wrong, or maybe it doesn't want to do it (e.g. because cp1252 covers the whole 256 possible bytes so the auto-detection can't work well). Stefan