From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.lisp.guile.user Subject: Re: guile can't find a chinese named file Date: Wed, 15 Feb 2017 19:53:46 +0200 Message-ID: <8737ffwdat.fsf@elektro.pacujo.net> References: <87h94gqz34.fsf@fencepost.gnu.org> <87fuk0ctve.fsf@elektro.pacujo.net> <878tpsqtzl.fsf@fencepost.gnu.org> <87zii8bcdw.fsf@elektro.pacujo.net> <87y3xspcux.fsf@fencepost.gnu.org> <578885360.4452806.1487105647708@mail.yahoo.com> <87r330cwhj.fsf@elektro.pacujo.net> <191859705.4469709.1487109121157@mail.yahoo.com> <20170214221914.1483ddb1@bother.homenet> <20170215091832.GA28017@tuxteam.de> <83inobz8yl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487181259 27450 195.159.176.226 (15 Feb 2017 17:54:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 17:54:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-user@gnu.org To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Feb 15 18:54:11 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce3mK-0006On-EG for guile-user@m.gmane.org; Wed, 15 Feb 2017 18:54:08 +0100 Original-Received: from localhost ([::1]:42257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ce3mP-0006IB-3o for guile-user@m.gmane.org; Wed, 15 Feb 2017 12:54:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ce3m2-0006Hu-AJ for guile-user@gnu.org; Wed, 15 Feb 2017 12:53:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ce3m1-0003Um-9d for guile-user@gnu.org; Wed, 15 Feb 2017 12:53:50 -0500 Original-Received: from [2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508] (port=59340 helo=pacujo.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ce3m1-0003UJ-1p for guile-user@gnu.org; Wed, 15 Feb 2017 12:53:49 -0500 Original-Received: from elektro.pacujo.net (192.168.1.200) by elektro.pacujo.net; Wed, 15 Feb 2017 19:53:46 +0200 Original-Received: by elektro.pacujo.net (sSMTP sendmail emulation); Wed, 15 Feb 2017 19:53:46 +0200 In-Reply-To: <83inobz8yl.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Feb 2017 18:59:14 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13234 Archived-At: Eli Zaretskii : >> Date: Wed, 15 Feb 2017 10:18:32 +0100 >> From: >> I think the only sane way to see a Linux file system path is the way >> Linux sees it: as a byte string. > > This would lose a lot in 99% of use cases. You are, in effect, > suggesting a "reverse optimization", whereby the majority of use cases > is punished in favor of a small minority, based on theoretical > intractability. I think this is a question of software security as well. These "theoretical" loopholes could be used for sabotage that evades testing. >> Sure, some helper infrastructure to try to make characters of that >> mess will be welcome, but that should be absolutely robust wrt. >> unexpected input e.g. bad UTF-8) and leave control to the >> application. > > Most applications won't like this burden, because most application > programmers don't know enough about the issue to solve them correctly, > especially for users of other OSes and locales. AFAIK, Windows allows pathnames that are illegal Unicode as well, namely pathnames with isolated surrogate code points (). I don't have access to a Windows machine so maybe somebody else could confirm my suspicion. Marko