From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: guile can't find a chinese named file Date: Tue, 14 Feb 2017 13:58:31 -0600 Message-ID: References: <874m0gd3z4.fsf@gnu.org> <87wpdc8rx7.fsf@elektro.pacujo.net> <87poj4r04c.fsf@fencepost.gnu.org> <87k29c8q3b.fsf@elektro.pacujo.net> <87h94gqz34.fsf@fencepost.gnu.org> <87fuk0ctve.fsf@elektro.pacujo.net> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1487102359 5462 195.159.176.226 (14 Feb 2017 19:59:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2017 19:59:19 +0000 (UTC) Cc: Guile User , David Kastrup To: Marko Rauhamaa Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 14 20:59:13 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 1cdjFn-0000yK-5q for guile-user@m.gmane.org; Tue, 14 Feb 2017 20:59:11 +0100 Original-Received: from localhost ([::1]:36920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdjFs-0005Zr-LN for guile-user@m.gmane.org; Tue, 14 Feb 2017 14:59:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdjFX-0005ZY-1Q for guile-user@gnu.org; Tue, 14 Feb 2017 14:58:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdjFV-0001Rl-V9 for guile-user@gnu.org; Tue, 14 Feb 2017 14:58:55 -0500 Original-Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:33680) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdjFU-0001QP-Bm; Tue, 14 Feb 2017 14:58:52 -0500 Original-Received: by mail-qk0-x233.google.com with SMTP id p22so41480361qka.0; Tue, 14 Feb 2017 11:58:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=P0+MHnZR9A3XaxafTZhvsjQYtXNMGnT7DZoYSFE3HSE=; b=eje4c9e0CUzBVuHHPJAmyCUYzRGjgywuBXo16ie0EgYNPGu+Qrd14r+CB+svRNs0jZ WnMmVX57e0us0zACyJpSX1ZLLRAmcegth2onYPVNap5LookgDeW9OLuLNx4PghAD10JY atPWZ2Imas3x+Fnu75bPYqEfXNkYho6wLl+F62lpY+eItpR0TC6mhpKeW0uqHmUSHdJM n1Bh+wtrlotDyVF2E6hNqnsW3WugI2XlAh9Qb4LJBDhds/MNYp+ZwJV+K+yRsyn4HSIl iOdx0PmqGvD4Sg15TSezQW8YCDCP1BWH77SR4uBwA9HNrNXpynOQAS49GO3MNNvdVbKw 2zCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=P0+MHnZR9A3XaxafTZhvsjQYtXNMGnT7DZoYSFE3HSE=; b=kmuj3mfDByCaoZBF9uRgbVL3tAoQFJkQhqEFWBWo5vDRp3qwv7duCpLnXmcSVaq0Jx xv6mrcGQcZ4p1T86WbqEuKBuvMm7ZU2l51UQanIkMi8gdeK7r1fesNrjOfh2pnY/C9dA 6G2IW2O1SmHsAMVr3buZ/n2y+5NVHBOKZA4FBr4SF6o0GiSMTG/hRShPLPe1LFf6khCD /p5mytmeyML0+U/Gr/7oHhZaNT25fBq05ErZr2FPSu4DCgGnF9+88ImHL6dZ+zvtcQto eJC31VIrrx2LB7uqW2qpNsYa7W+sj0v/jDpBJJrYfHEgE508KYr2jsxFUnZ3EWmOWZBk c2uQ== X-Gm-Message-State: AMke39koDG0ZgVtMc8AHBfReiUr8Skg1q5zwduhdc78YOtG+Tkxt6G89F0sD7lXnJA7yjE0GbF5IL08YGYEF7Q== X-Received: by 10.55.131.4 with SMTP id f4mr29522971qkd.1.1487102331639; Tue, 14 Feb 2017 11:58:51 -0800 (PST) Original-Received: by 10.12.174.231 with HTTP; Tue, 14 Feb 2017 11:58:31 -0800 (PST) In-Reply-To: <87fuk0ctve.fsf@elektro.pacujo.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::233 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:13200 Archived-At: On Mon, Jan 30, 2017 at 11:58 AM, Marko Rauhamaa wrote: > David Kastrup : > >> But at any rate, this cannot easily be fixed since Guile uses libraries >> for encoding/decoding that cannot deal reproducibly with improper byte >> patterns. > > Guile's mistake was to move to Unicode strings in the operating system > interface. Guile's mistake is that it does lots of pointless conversions from utf8 strings to wide-char arrays, and back, which is a) a cpu suck, and b) a breeding ground for bugs. The current 2.1 guile, in git as of a few weeks ago, has multiple utf8 handling bugs. I believe most or all of these bugs are "internal", fixable without any changes to the API or user code. Its just that the utf8 unit tests for guile are weak, and don't test some of the common usages, and thus allow bugs to breed. >> The problem here is that Guile cannot even deal with _properly_ >> encoded UTF-8 file names on the command line. > > Ok. Well, yes, that too. --linas