From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15260: cannot build in a directory with non-ascii characters Date: Sun, 27 Oct 2013 21:02:51 +0200 Message-ID: <83eh76fsf8.fsf@gnu.org> References: <83y55ih6g3.fsf@gnu.org> <81ppqums9o.fsf@fencepost.gnu.org> <83hac5h1ha.fsf@gnu.org> <83bo2dgq36.fsf@gnu.org> <837gd1gpcz.fsf@gnu.org> <8361slgnhk.fsf@gnu.org> <83zjpwfp3l.fsf@gnu.org> <83txg3g5ni.fsf@gnu.org> <83ob6bfjsz.fsf@gnu.org> <83k3gyfzzk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382900660 25653 80.91.229.3 (27 Oct 2013 19:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 19:04:20 +0000 (UTC) Cc: 15260@debbugs.gnu.org To: rgm@gnu.org, Stefan Monnier , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 27 20:04:23 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 1VaVdO-0003qV-RJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 20:04:23 +0100 Original-Received: from localhost ([::1]:38677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaVdO-0004F1-74 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 15:04:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaVdD-0004DF-8I for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:04:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaVd5-0003Ba-Tl for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:04:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaVd5-0003BV-Qv for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VaVd4-0001bu-Ib for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2013 19:04: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.13829005846121 (code B ref 15260); Sun, 27 Oct 2013 19:04:02 +0000 Original-Received: (at 15260) by debbugs.gnu.org; 27 Oct 2013 19:03:04 +0000 Original-Received: from localhost ([127.0.0.1]:47707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaVc7-0001ae-QP for submit@debbugs.gnu.org; Sun, 27 Oct 2013 15:03:04 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46326) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaVc5-0001a6-D3 for 15260@debbugs.gnu.org; Sun, 27 Oct 2013 15:03:02 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MVC00500CNW2A00@a-mtaout23.012.net.il> for 15260@debbugs.gnu.org; Sun, 27 Oct 2013 21:02:54 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVC004XHCWUXY70@a-mtaout23.012.net.il>; Sun, 27 Oct 2013 21:02:54 +0200 (IST) In-reply-to: <83k3gyfzzk.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:79703 Archived-At: The first few problems that pop up when building from the source tree whose parent has a non-ASCII name are solved by the changes below. I'm not very fond of these changes, especially the last one: it all looks very fragile and ad-hoc, and that's still on a system with a UTF-8 locale, where things should be relatively easy. After applying these changes, temacs comes up and dumps itself, but fails to find simple.el and bytecomp.el when it proceeds to compiling Lisp files. I guess now load-path is the culprit. Stay tuned. === modified file 'lisp/loadup.el' --- lisp/loadup.el 2013-10-08 15:11:29 +0000 +++ lisp/loadup.el 2013-10-27 18:26:12 +0000 @@ -150,7 +150,9 @@ (load "epa-hook") ;; Any Emacs Lisp source file (*.el) loaded here after can contain ;; multilingual text. -(load "international/mule-cmds") +(let ((dfn-coding default-file-name-coding-system)) + (load "international/mule-cmds") + (setq default-file-name-coding-system dfn-coding)) (load "case-table") ;; This file doesn't exist when building a development version of Emacs ;; from the repository. It is generated just after temacs is built. @@ -163,7 +165,9 @@ (load "language/cyrillic") (load "language/indian") (load "language/sinhala") -(load "language/english") +(let ((dfn-coding default-file-name-coding-system)) + (load "language/english") + (setq default-file-name-coding-system dfn-coding)) (load "language/ethiopic") (load "language/european") (load "language/czech") === modified file 'src/emacs.c' --- src/emacs.c 2013-10-26 13:43:58 +0000 +++ src/emacs.c 2013-10-27 18:48:51 +0000 @@ -2044,14 +2044,22 @@ You must run Emacs in batch mode in orde CHECK_STRING (filename); filename = Fexpand_file_name (filename, Qnil); - filename = ENCODE_FILE (filename); + if (NILP (Vfile_name_coding_system) + && NILP (Vdefault_file_name_coding_system)) + filename = Fstring_to_unibyte (filename); + else + filename = ENCODE_FILE (filename); if (!NILP (symfile)) { CHECK_STRING (symfile); if (SCHARS (symfile)) { symfile = Fexpand_file_name (symfile, Qnil); - symfile = ENCODE_FILE (symfile); + if (NILP (Vfile_name_coding_system) + && NILP (Vdefault_file_name_coding_system)) + symfile = Fstring_to_unibyte (symfile); + else + symfile = ENCODE_FILE (symfile); } }