[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51832: Piping unicode text in `shell-command'
From: |
Lars Ingebrigtsen |
Subject: |
bug#51832: Piping unicode text in `shell-command' |
Date: |
Sun, 14 Nov 2021 08:53:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Running
>>
>> (shell-command "echo -n '悟' | pbcopy")
>>
>> or
>>
>> (shell-command "echo -n 'øøøø' | pbcopy")
>>
>> fills the clipboard with `ÊÇü' and `√∏', respectively, while if I run
>> the same commands in a terminal emulator outside Emacs I get back the
>> original input. The same happens if I run the same shell commands in
>> `eshell'. This happens when I run a recent build of Emacs 29 with `-Q'
>> on macOS Catalina.
>
> Please be specific about the "recent build" part: which commit are you
> using?
I'm seeing the same issue with the current tree on Macos.
> There were some problems with the clipboard that were recently fixed.
This doesn't involve Emacs' interactions with the clipboard, though --
the pbcopy command is what's putting things on the clipboard. But
pbcopy's apparently misinterpreting the bytes it's getting over the pipe
somehow, which is surprising, because I assumed shell-command just sent
the entire string to a shell for execution. (But I haven't read the
code.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#51832: Piping unicode text in `shell-command', Tor Kringeland, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Eli Zaretskii, 2021/11/14
- bug#51832: Piping unicode text in `shell-command',
Lars Ingebrigtsen <=
- bug#51832: Piping unicode text in `shell-command', Eli Zaretskii, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Lars Ingebrigtsen, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Eli Zaretskii, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Lars Ingebrigtsen, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Lars Ingebrigtsen, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Lars Ingebrigtsen, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Eli Zaretskii, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Philipp, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Eli Zaretskii, 2021/11/14
- bug#51832: Piping unicode text in `shell-command', Lars Ingebrigtsen, 2021/11/14