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 22:27:19 +0300 Message-ID: <8361slgnhk.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382729298 28420 80.91.229.3 (25 Oct 2013 19:28:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2013 19:28:18 +0000 (UTC) Cc: 15260@debbugs.gnu.org To: rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 21:28:19 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 1VZn3S-0005Mx-Tl for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2013 21:28:19 +0200 Original-Received: from localhost ([::1]:60589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZn3S-0005kB-GF for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2013 15:28:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZn3J-0005j1-Gm for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 15:28:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZn3D-0001iO-LG for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 15:28:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZn3D-0001iF-Hk for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 15:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VZn3B-0000MK-Jt for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2013 15:28:01 -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 19:28:01 +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.13827292621350 (code B ref 15260); Fri, 25 Oct 2013 19:28:01 +0000 Original-Received: (at 15260) by debbugs.gnu.org; 25 Oct 2013 19:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:43969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZn2q-0000Lg-Q2 for submit@debbugs.gnu.org; Fri, 25 Oct 2013 15:27:42 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:49053) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZn2k-0000L9-IP for 15260@debbugs.gnu.org; Fri, 25 Oct 2013 15:27:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MV800300OJBLR00@a-mtaout22.012.net.il> for 15260@debbugs.gnu.org; Fri, 25 Oct 2013 22:27:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV800357OPRIE60@a-mtaout22.012.net.il>; Fri, 25 Oct 2013 22:27:27 +0300 (IDT) In-reply-to: <837gd1gpcz.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:79660 Archived-At: > Date: Fri, 25 Oct 2013 21:46:52 +0300 > From: Eli Zaretskii > Cc: 15260@debbugs.gnu.org > > > but there are still > > problems later on, again related to Emacs mistakenly believing that > > certain directories do not exist, when they do (Warning: arch-dependent > > data dir `...' No such file or directory; etc). > > > > The "non-ascii srcdir == builddir" case fails even earlier, due to not > > finding etc. > > OK, I will take a closer look. Thanks for the info. I think I see the problem. All those PATH_* variables that come from epaths.h yield encoded file names (because they were written by the shell). But we never decode them before using them in init_callproc and init_callproc_1. Similar things happen with decode_env_path: it calls 'getenv', but never decodes the values it gets from that. I will take a crack on fixing these.