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: Mon, 28 Oct 2013 05:39:54 +0200 Message-ID: <83bo2af4hh.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> <83mwlug0cd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382931676 31624 80.91.229.3 (28 Oct 2013 03:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 03:41:16 +0000 (UTC) Cc: 15260@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 28 04:41: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 1Vadha-0007Ef-R0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2013 04:41:14 +0100 Original-Received: from localhost ([::1]:39819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vadha-0001kz-Fz for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 23:41:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VadhT-0001ks-Jk for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 23:41:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VadhO-0005pc-E2 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 23:41:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VadhO-0005pY-9p for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 23:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VadhN-0008DI-LM for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 23:41: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: Mon, 28 Oct 2013 03:41: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.138293160931505 (code B ref 15260); Mon, 28 Oct 2013 03:41:01 +0000 Original-Received: (at 15260) by debbugs.gnu.org; 28 Oct 2013 03:40:09 +0000 Original-Received: from localhost ([127.0.0.1]:47998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VadgW-0008C4-9h for submit@debbugs.gnu.org; Sun, 27 Oct 2013 23:40:08 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38593) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VadgS-0008BQ-7M for 15260@debbugs.gnu.org; Sun, 27 Oct 2013 23:40:05 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVD003000U21400@a-mtaout20.012.net.il> for 15260@debbugs.gnu.org; Mon, 28 Oct 2013 05:39:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVD0027B0UKT170@a-mtaout20.012.net.il>; Mon, 28 Oct 2013 05:39:57 +0200 (IST) In-reply-to: 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:79713 Archived-At: > From: Stefan Monnier > Cc: rgm@gnu.org, handa@gnu.org, 15260@debbugs.gnu.org > Date: Sun, 27 Oct 2013 20:30:32 -0400 > > > So I guess you are asking why the particular piece of code being > > discussed here couldn't keep file names as unibyte strings, is that > > your question? > > IIUC the issue is how to encode when we don't yet have the > coding-systems loaded/setup. But it seems if we can't encode, then we > can't decode either, so we should just fallback on using unibyte strings > (which shouldn't be encoded on the way back to the OS) for those file > names we create/manipulate before coding-systems are available. As I explained, this would be even more hair than what I proposed, because you are talking about core Emacs data structures and variables that are involved in every file-related op. On top of that, using unibyte strings is inherently fragile in Emacs, as the code is not written to support them too well, as you well know. We always advise users to stay away of unibyte strings, and for a good reason, so doing this ourselves sounds unwise.