From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: filename(CJK utf8) problem on OSX. Date: Mon, 28 Mar 2016 07:35:49 +0200 Message-ID: <20160328053549.GA21784@tuxteam.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459145462 14230 80.91.229.3 (28 Mar 2016 06:11:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 06:11:02 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 28 08:10:55 2016 Return-path: Envelope-to: guile-user@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 1akQO6-0006fn-Uy for guile-user@m.gmane.org; Mon, 28 Mar 2016 08:10:55 +0200 Original-Received: from localhost ([::1]:39398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akQO2-0002ny-3Y for guile-user@m.gmane.org; Mon, 28 Mar 2016 02:10:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akQNs-0002nh-VW for guile-user@gnu.org; Mon, 28 Mar 2016 02:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akQNp-0007hb-Kr for guile-user@gnu.org; Mon, 28 Mar 2016 02:10:40 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:60465 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akQNp-0007gK-8X for guile-user@gnu.org; Mon, 28 Mar 2016 02:10:37 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1akPq9-0005kK-Iz for guile-user@gnu.org; Mon, 28 Mar 2016 07:35:49 +0200 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12502 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Mar 28, 2016 at 10:21:46AM +0900, Park SungMin wrote: > follow code….. I just test openfile(CJK filename). > "open-file" and "call-with-input-file" are raise error. so I test use low C(Posix) API, then run ok! > I don’t know is it bug? or option problem? [...] > ;;but…. > (file-exists? filename) ;; #f > (open-file filename "r") ; ERROR: In procedure open-file: No such file or directory: "/Users/byul/Desktop/사진.gif" I think the port encoding has nothing to do with the encoding of the file name. It is effective only once you've opened the file (i.e. for the file content). For the file name, I'd say your current locale is the relevant thing; start here: https://www.gnu.org/software/guile/manual/html_node/Locales.html regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlb4wrUACgkQBcgs9XrR2kZQLACbBVv12GD1IbReUY/cks1gavv5 lAMAni15UHKElYjKhSkimM48fMum27QN =bfF7 -----END PGP SIGNATURE-----