[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: on ESHELL, utf-8 and fossil command-line commit message
From: |
Eli Zaretskii |
Subject: |
Re: on ESHELL, utf-8 and fossil command-line commit message |
Date: |
Sat, 01 Oct 2022 21:41:58 +0300 |
> Date: Sat, 01 Oct 2022 15:29:58 -0300
> From: Wayne Harris via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org>
>
> > You cannot use UTF-8 for encoding command-line arguments of
> > subprocesses on MS-Windows. Use your system's codepage instead. This
> > means make sure the Eshell buffer's value of buffer-file-coding-system
> > is your system codepage, not UTF-8.
>
> I'm glad I added that parenthesis about Windows. (Thank you for the info!)
>
> However, I still did not manage to get this right. Could it be that I
> don't know what my codepage is? When I run ``chcp'', I get 850.
>
> --8<---------------cut here---------------start------------->8---
> C:\Users\mer>chcp
> Active code page: 850
> --8<---------------cut here---------------end--------------->8---
Unlikely. What does this say in Emacs:
M-: w32-ansi-code-page RET
> Then in ESHELL I type:
>
> --8<---------------cut here---------------start------------->8---
> %(setq buffer-file-coding-system 'cp850-dos)
> cp850-dos
>
> %echo naive >> encoding.txt
>
> %fs commit -m 'Naïve.'
> [...]
> Sync done, wire bytes sent: 2882 received: 309 ip: 5.161.138.46
>
> %fs timeline
> === 2022-10-01 ===
> 18:26:22 [c7835d354b] *CURRENT* Naïve. (user: mer tags: trunk)
> [...]
> New_Version: c7835d354b[...]
> %
> --8<---------------cut here---------------end--------------->8---
Maybe you have other customizations that cause this. What does the
below say:
M-: default-process-coding-system RET
- on ESHELL, utf-8 and fossil command-line commit message, Wayne Harris, 2022/10/01
- Re: on ESHELL, utf-8 and fossil command-line commit message, Eli Zaretskii, 2022/10/01
- Re: on ESHELL, utf-8 and fossil command-line commit message, Wayne Harris, 2022/10/01
- Re: on ESHELL, utf-8 and fossil command-line commit message,
Eli Zaretskii <=
- Re: on ESHELL, utf-8 and fossil command-line commit message, Wayne Harris, 2022/10/01
- Re: on ESHELL, utf-8 and fossil command-line commit message, Eli Zaretskii, 2022/10/01
- Re: on ESHELL, utf-8 and fossil command-line commit message, Wayne Harris, 2022/10/02