From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: guile can't find a chinese named file Date: Sun, 26 Feb 2017 21:58:00 +0100 Message-ID: <877f4cu0tj.fsf@pobox.com> References: <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> <20170215101533.32b183bb@bother.homenet> <20170215114820.GA5999@tuxteam.de> <20170215121309.55e4556f@bother.homenet> <83fujfz8k4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488142719 18938 195.159.176.226 (26 Feb 2017 20:58:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2017 20:58:39 +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 Sun Feb 26 21:58:34 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 1ci5to-00045x-4V for guile-user@m.gmane.org; Sun, 26 Feb 2017 21:58:32 +0100 Original-Received: from localhost ([::1]:48305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci5tu-0000Gd-7e for guile-user@m.gmane.org; Sun, 26 Feb 2017 15:58:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci5tW-0000G8-FT for guile-user@gnu.org; Sun, 26 Feb 2017 15:58:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci5tV-0000LR-Nt for guile-user@gnu.org; Sun, 26 Feb 2017 15:58:14 -0500 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:60994 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ci5tR-0000Jy-U7; Sun, 26 Feb 2017 15:58:10 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 75D9562067; Sun, 26 Feb 2017 15:58:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=vPXOs2MaL12QeM1WOG8H7nYHxO4=; b=QVXfzH 9fZIohW0/clB7OU+HO0qO2gfd9c00tVS6ABlbY5LwmTK3ziMEy28IAG0VJldmJjw BgTjQfNW6MpAGkAN5ksynha2sUUobqJhGdUmux4Z3jwQI2a9egyzZZnxgkbdnGA2 CDbi15TjfCFvrsL0KRI3lyhud79jCLmfz8ZDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=owvdb6I/yYIduSGaJ4TcuuT6+g0Rml/L sIQIXyM9m39PRAWq6AnlxADVwiaZwW+o8jcJd9wCZhYk5BSm00dwsnDcW80tElLq dqXORkGx6cIz3RamSl9bB7GT5mEMMb/tGh/v19XLIy+ylcbPKrdvugYLMrGXBWLm wRvrkN8h1Ao= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 6983462063; Sun, 26 Feb 2017 15:58:09 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 510FC6205A; Sun, 26 Feb 2017 15:58:08 -0500 (EST) In-Reply-To: <83fujfz8k4.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Feb 2017 19:07:55 +0200") X-Pobox-Relay-ID: 46CD8CA0-FC66-11E6-910A-6141F2301B6D-02397024!pb-sasl2.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.67 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:13325 Archived-At: Hi, On Wed 15 Feb 2017 18:07, Eli Zaretskii writes: > the [Emacs] MS-Windows port pretends towards Emacs internals that file > names are encoded in UTF-8, and shadows relevant system APIs that > accept or return file names, like fopen, opendir/readdir, stat, > etc. with its own versions that convert UTF-8 to and from UTF-16 > before calling the real OS APIs. > > Once again, just use that experience, and maybe even some > infrastructure code. FWIW we are up for good suggestions. It's clear that file names (and command line arguments and environment variables) aren't handled ideally in Guile as they aren't fundamentally strings of characters in any particular encoding, and hence this class of bug. Andy