From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15260: cannot build in a directory with non-ascii characters Date: Thu, 31 Oct 2013 14:09:39 -0400 Message-ID: References: <83hac5h1ha.fsf@gnu.org> <83bo2dgq36.fsf@gnu.org> <837gd1gpcz.fsf@gnu.org> <8361slgnhk.fsf@gnu.org> <83zjpwfp3l.fsf@gnu.org> <83mwlug0cd.fsf@gnu.org> <83bo2af4hh.fsf@gnu.org> <8361shfil7.fsf@gnu.org> <834n81fdp8.fsf@gnu.org> <83zjpseo1g.fsf@gnu.org> <838uxaei43.fsf@gnu.org> <83wqktcqdx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383243015 32027 80.91.229.3 (31 Oct 2013 18:10:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2013 18:10:15 +0000 (UTC) Cc: 15260@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 19:10:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VbwhG-0004Ww-Bj for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2013 19:10:18 +0100 Original-Received: from localhost ([::1]:58723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbwhF-00038R-R2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2013 14:10:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbwh8-00038K-BL for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2013 14:10:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbwh2-0001PK-LK for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2013 14:10:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbwh2-0001P5-It for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2013 14:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vbwh0-0008VM-JL for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2013 14:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2013 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15260 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15260-submit@debbugs.gnu.org id=B15260.138324298832649 (code B ref 15260); Thu, 31 Oct 2013 18:10:02 +0000 Original-Received: (at 15260) by debbugs.gnu.org; 31 Oct 2013 18:09:48 +0000 Original-Received: from localhost ([127.0.0.1]:55381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbwgl-0008UV-4j for submit@debbugs.gnu.org; Thu, 31 Oct 2013 14:09:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58719) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbwgj-0008UH-2H for 15260@debbugs.gnu.org; Thu, 31 Oct 2013 14:09:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLFAEfEhQYDSQTiAsGwS2RCgOSWpIggV6DEw X-IPAS-Result: Av8EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLFAEfEhQYDSQTiAsGwS2RCgOSWpIggV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="36782530" Original-Received: from 108-161-119-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.119.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Oct 2013 14:09:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3D9A9611E1; Thu, 31 Oct 2013 14:09:39 -0400 (EDT) In-Reply-To: <83wqktcqdx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Oct 2013 19:16:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79830 Archived-At: >>>>> "Eli" == Eli Zaretskii writes: >> From: Stefan Monnier >> Cc: Kenichi Handa , 15260@debbugs.gnu.org >> Date: Wed, 30 Oct 2013 21:01:21 -0400 >> >> > Why do we have this confusing inconsistency? >> >> make_string is a bug. There's no way to know/guess if the string should >> be unibyte or multibyte. So, it should be removed and replaced by calls >> to either make_unibyte_string or make_multibyte_string. > Here's one more gotcha I bumped into while working on this bug. > Suppose the filesystem where you build Emacs uses a file-name encoding > whose coding-system-category is 'charset'. Example: cpNNNN. Then, > when Emacs comes up after dumping, it loads subdirs.el in each > directory on load-path. To do this, it calls 'openp' to look for > DIR/subdirs.el, which involves calling ENCODE_FILE on > "DIR/subdirs.el", in order to pass that to 'faccessat' or 'open'. > Now, if the charset that is needed to encode this file name is not yet > loaded into Emacs, Emacs will try to load it. To this end, it will > look along charset-map-path for the corresponding map file, and for > that it will again call 'openp', recursively. That 'openp' call will > again want to ENCODE_FILE with the same encoding, which will again > cause Emacs to try to load the corresponding map file, etc. etc., > until we exhaust the specpdl stack. So you mean that we have: - charset-map-path is a multibyte string. - the file-name encoding uses a charset that's not yet loaded. How do we get into such a state? Stefan