From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names. Date: Tue, 03 May 2011 10:38:43 +0200 Message-ID: <87y62op4a4.fsf@gnu.org> References: <1297784103-18322-1-git-send-email-janneke-list@xs4all.nl> <1297784103-18322-3-git-send-email-janneke-list@xs4all.nl> <87r58gzuoy.fsf@gnu.org> <87vcxsycds.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304411938 30713 80.91.229.12 (3 May 2011 08:38:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 May 2011 08:38:58 +0000 (UTC) Cc: Eli Barzilay , guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue May 03 10:38:54 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHB89-0002gp-TC for guile-devel@m.gmane.org; Tue, 03 May 2011 10:38:54 +0200 Original-Received: from localhost ([::1]:35586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHB89-0005qy-Fy for guile-devel@m.gmane.org; Tue, 03 May 2011 04:38:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHB87-0005qs-3k for guile-devel@gnu.org; Tue, 03 May 2011 04:38:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHB85-0005ae-Ga for guile-devel@gnu.org; Tue, 03 May 2011 04:38:51 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:47431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHB85-0005aX-CH for guile-devel@gnu.org; Tue, 03 May 2011 04:38:49 -0400 Original-Received: from nixey (unknown [193.50.110.208]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id C69134435D; Tue, 3 May 2011 10:38:47 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?iso-8859-1?Q?Flor=E9al?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Tue, 03 May 2011 09:44:10 +0200") User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12411 Archived-At: Hi, Andy Wingo writes: > On Tue 03 May 2011 00:18, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >>> I still think that we need at least the ability to pass a bytevector as >>> a path name, on GNU systems; and that if we can do so, then any routine >>> that needs to deal with a path name would then need to deal in byte >>> vectors in addition to strings, and at that point perhaps it is indeed >>> useful to have a path library. >> >> To accommodate various file name encodings, right? Then yes. > > That's the crazy thing: file names on GNU aren't in any encoding! Yes, that=E2=80=99s POSIX. >> I think GLib and the like expect UTF-8 as the file name encoding and >> complain otherwise, so UTF-8 might be a better default than locale >> encoding (and it=E2=80=99s certainly wiser to be locale-independent.) > > It's more complicated than that. Here's the old interface that they > used, which attempted to treat paths as utf-8: > > http://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.= html > (search for "file name encoding") > > The new API is abstract, so it allows operations like "get-display-name" > and "get-bytes": > > http://developer.gnome.org/gio/2.28/GFile.html (search for "encoding" > in that page) Interesting. But when I launch Geeqie there=E2=80=99s a GLib warning when it encounters a non-UTF-8-encoded name, which basically makes me feel guilty for not using UTF-8. >> So volumes matter in the file name canonicalization of the .go cache >> right? >> >> Couldn=E2=80=99t we mimic /cygdrive/c, etc.? > > Is that what cygwin does? We certainly could, yes; though for the > purposes of joining the cache dir to an absolute filename, I guess we > could simply change c:/foo to /c/foo... Hum! Yes, that should be good enough (but that=E2=80=99s really just for Guile on MinGW since Guile on Cygwin cannot have this problem, AIUI.) Thanks, Ludo=E2=80=99.