From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#4157: Re: bug#4157: 23.1.50; faulty character characterisation for =?utf-8?b?w6Q=?= Date: Wed, 19 Aug 2009 09:23:26 +0900 Message-ID: References: <57B19222-57FF-40C8-8C94-8D19E1281D14@Freenet.DE> <14A765B4-9EAF-46AC-BEBC-6B0A664BA03A@Freenet.DE> Reply-To: Kenichi Handa , 4157@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250802899 11164 80.91.229.12 (20 Aug 2009 21:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 21:14:59 +0000 (UTC) Cc: 4157@emacsbugs.donarmstrong.com To: Peter Dyballa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 20 23:14:49 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeEy5-0005fM-EK for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 23:14:46 +0200 Original-Received: from localhost ([127.0.0.1]:57812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEy4-0004hD-LO for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Aug 2009 17:14:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeEwH-0003qi-Ak for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:12:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeEwD-0003op-8n for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:12:52 -0400 Original-Received: from [199.232.76.173] (port=53367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEwC-0003og-Sk for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:12:48 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52315) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeEwC-0007El-5E for bug-gnu-emacs@gnu.org; Thu, 20 Aug 2009 17:12:48 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7KKkpoI019227; Thu, 20 Aug 2009 13:48:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7KKbLJ0017415; Thu, 20 Aug 2009 13:37:21 -0700 Resent-Date: Thu, 20 Aug 2009 13:37:21 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 20 Aug 2009 20:37:21 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4157 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4157-submit@emacsbugs.donarmstrong.com id=B4157.125064141124410 (code B ref 4157); Thu, 20 Aug 2009 20:37:21 +0000 Original-Received: (at 4157) by emacsbugs.donarmstrong.com; 19 Aug 2009 00:23:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7J0NSTL024407 for <4157@emacsbugs.donarmstrong.com>; Tue, 18 Aug 2009 17:23:30 -0700 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n7J0NRmK004387; Wed, 19 Aug 2009 09:23:27 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n7J0NRpv015918; Wed, 19 Aug 2009 09:23:27 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n7J0NQIZ015908; Wed, 19 Aug 2009 09:23:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MdYxa-0000vA-Bv; Wed, 19 Aug 2009 09:23:26 +0900 In-reply-to: <14A765B4-9EAF-46AC-BEBC-6B0A664BA03A@Freenet.DE> (message from Peter Dyballa on Tue, 18 Aug 2009 15:40:27 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 20 Aug 2009 17:12:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30362 Archived-At: In article <14A765B4-9EAF-46AC-BEBC-6B0A664BA03A@Freenet.DE>, Peter Dyballa writes: > > Please show the value of default-file-name-coding-system and > > file-name-coding-system. > > > I (seem to) see: it's utf-8 for the first and nil for the second > variable (the same as globally). So the string M\344r, coming from > some ls which follows LC_CTYPE or LANG, is interpreted as being UTF-8 > which it of course isn't... Ah, I found this code in mule-cmds.el. (if (eq system-type 'darwin) ;; The file-name coding system on Darwin systems is always utf-8. (setq default-file-name-coding-system 'utf-8) I don't remember why that code exists. If the comment is wrong (i.e. there's no need of treating darwin specially here), the attached patch should solve the problem. Please try it. --- Kenichi Handa handa@m17n.org --- mule-cmds.el.~1.364.~ 2009-08-13 20:59:18.000000000 +0900 +++ mule-cmds.el 2009-08-19 09:21:33.000000000 +0900 @@ -355,13 +355,10 @@ (or (local-variable-p 'buffer-file-coding-system buffer) (ucs-set-table-for-input buffer)))) - (if (eq system-type 'darwin) - ;; The file-name coding system on Darwin systems is always utf-8. - (setq default-file-name-coding-system 'utf-8) - (if (and default-enable-multibyte-characters - (or (not coding-system) - (coding-system-get coding-system 'ascii-compatible-p))) - (setq default-file-name-coding-system coding-system))) + (if (and default-enable-multibyte-characters + (or (not coding-system) + (coding-system-get coding-system 'ascii-compatible-p))) + (setq default-file-name-coding-system coding-system)) (setq default-terminal-coding-system coding-system) (setq default-keyboard-coding-system coding-system) ;; Preserve eol-type from existing default-process-coding-systems.