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: Fri, 25 Oct 2013 17:25:05 +0300 Message-ID: <83hac5h1ha.fsf@gnu.org> References: <83y55ih6g3.fsf@gnu.org> <81ppqums9o.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382711180 5930 80.91.229.3 (25 Oct 2013 14:26:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2013 14:26:20 +0000 (UTC) Cc: 15260@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 16:26:24 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 1VZiLC-0001ul-HU for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2013 16:26:18 +0200 Original-Received: from localhost ([::1]:59542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZiLC-0001WG-17 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2013 10:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZiL2-0001V7-VX for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 10:26:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZiKx-0007R4-2F for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 10:26:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZiKw-0007R0-VK for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 10:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VZiKw-0005mY-Bv for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 10:26: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: Fri, 25 Oct 2013 14:26: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.138271113522189 (code B ref 15260); Fri, 25 Oct 2013 14:26:02 +0000 Original-Received: (at 15260) by debbugs.gnu.org; 25 Oct 2013 14:25:35 +0000 Original-Received: from localhost ([127.0.0.1]:43523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZiKS-0005ln-Dd for submit@debbugs.gnu.org; Fri, 25 Oct 2013 10:25:34 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:39360) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZiKO-0005lY-Kh for 15260@debbugs.gnu.org; Fri, 25 Oct 2013 10:25:29 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MV800M00AP0PG00@a-mtaout20.012.net.il> for 15260@debbugs.gnu.org; Fri, 25 Oct 2013 17:25:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV800MCEAQ1N020@a-mtaout20.012.net.il>; Fri, 25 Oct 2013 17:25:14 +0300 (IDT) In-reply-to: <81ppqums9o.fsf@fencepost.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:79637 Archived-At: > From: Glenn Morris > Cc: 15260@debbugs.gnu.org > Date: Thu, 24 Oct 2013 14:35:15 -0400 > > Eli Zaretskii wrote: > > > case "$var" in > > *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;; > > esac > > > > This is quite drastic. > > I don't think so. The alternative is a cryptic failure during the build stage. > > > Do we understand what is the underlying technical reason for the > > build failures? > > Something to do with failure to find files, just as it was 6 years ago. > http://lists.gnu.org/archive/html/emacs-devel/2007-05/msg00984.html > > The immediate problem for me is a dump failure: > > Finding pointers to doc strings... > Finding pointers to doc strings...done > Dumping under the name emacs > emacs: Can't open /path/to/non-ascii/src/temacs for reading: No such file > or directory > make[1]: *** [bootstrap-emacs] Error 1 Does the change below help? > Why not make a non-ASCII directory and try it yourself... It requires too much setup on my part (this cannot be simulated on Windows without too much hassle). But I will do that if there's no easier way. I just thought that some analysis has been done already. === modified file 'src/emacs.c' --- src/emacs.c 2013-10-20 16:47:42 +0000 +++ src/emacs.c 2013-10-25 14:21:47 +0000 @@ -2044,11 +2044,15 @@ You must run Emacs in batch mode in orde CHECK_STRING (filename); filename = Fexpand_file_name (filename, Qnil); + filename = ENCODE_FILE (filename); if (!NILP (symfile)) { CHECK_STRING (symfile); if (SCHARS (symfile)) - symfile = Fexpand_file_name (symfile, Qnil); + { + symfile = Fexpand_file_name (symfile, Qnil); + symfile = ENCODE_FILE (symfile); + } } tem = Vpurify_flag;