From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Passing unicode filenames to start-process on Windows? Date: Fri, 08 Jan 2016 11:17:32 +0200 Message-ID: <834meoqvkj.fsf@gnu.org> References: <83si2a3cuo.fsf@gnu.org> <83h9ip2xdg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452244693 29046 80.91.229.3 (8 Jan 2016 09:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 09:18:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Klaus-Dieter Bauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 08 10:18:08 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aHTBK-00061U-Vf for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 10:18:03 +0100 Original-Received: from localhost ([::1]:34639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHTBK-0003Nm-1Q for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 04:18:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHTAz-0003KI-2f for emacs-devel@gnu.org; Fri, 08 Jan 2016 04:17:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHTAt-0000pq-TC for emacs-devel@gnu.org; Fri, 08 Jan 2016 04:17:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHTAt-0000pm-PT; Fri, 08 Jan 2016 04:17:35 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1152 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHTAs-0001nP-NL; Fri, 08 Jan 2016 04:17:35 -0500 In-reply-to: (message from Klaus-Dieter Bauer on Fri, 8 Jan 2016 00:31:38 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197808 Archived-At: > From: Klaus-Dieter Bauer > Date: Fri, 8 Jan 2016 00:31:38 +0100 > Cc: emacs-devel@gnu.org > > - I want at some point to write an incremental backup utility > that uses md5sum to identify renamed files. Since precompiled > Windows binaries are 32bit, only the first 512MB of any given > file are accessible to elisp however, so I wanted to use > GnuWin32's md5sum.exe (but it turns out that it doesn't > support unicode filenames anyway). Emacs 25 can be built --with-wide-int, in which case the 512MB limit goes up to almost 2GB. I believe the precomiled binaries of the next version will use this configure-time option. So maybe this is still a relevant alternative for you. > - I want to verify a convention where filenames should mirror > the metadata in my music library. Here I intended to write > an elisp tool (for easy interactive processing im Emacs) > and tried to use ffmpeg (which does support unicode filenames > in cmd.exe). You could have Emacs write a batch file that invokes ffmpeg with those Unicode file names (encoded in UTF-16, of course, not UTF-8!), and then run the batch file as the sub-process. Will that work for you? > I checked and both tools allow reading the input data from > a pipe (`type UNICODE.mp3 | ffmpeg -i - ...` or `md5sum` > respectively), so that workaround is applicable to all my usecases. Yes, that's another possibility.