From: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Passing unicode filenames to start-process on Windows?
Date: Fri, 8 Jan 2016 21:01:23 +0100 [thread overview]
Message-ID: <CANtbJLH86kh3g4d9kmDOvNUZv6vi91CEEd+386LjpVvGe1ZURA@mail.gmail.com> (raw)
In-Reply-To: <834meoqvkj.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
2016-01-08 10:17 GMT+01:00 Eli Zaretskii <eliz@gnu.org>:
> > From: Klaus-Dieter Bauer <bauer.klaus.dieter@gmail.com>
> > 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?
>
It will, though I'll probably stick with the pipe version
where it's possible. It is the more portable solution (in
case that I use the script on a linux system).
>
> > 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.
>
[-- Attachment #2: Type: text/html, Size: 2926 bytes --]
prev parent reply other threads:[~2016-01-08 20:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 15:20 Passing unicode filenames to start-process on Windows? Klaus-Dieter Bauer
2016-01-06 16:13 ` Eli Zaretskii
2016-01-06 21:19 ` Klaus-Dieter Bauer
2016-01-06 23:05 ` Davis Herring
2016-01-07 3:36 ` Eli Zaretskii
2016-01-07 16:00 ` Eli Zaretskii
2016-01-07 23:31 ` Klaus-Dieter Bauer
2016-01-08 9:17 ` Eli Zaretskii
2016-01-08 20:01 ` Klaus-Dieter Bauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANtbJLH86kh3g4d9kmDOvNUZv6vi91CEEd+386LjpVvGe1ZURA@mail.gmail.com \
--to=bauer.klaus.dieter@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.