From Newsgroup: gnu.emacs.help
Spiros Bousbouras <
spibou@gmail.com> writes:
On Sat, 01 Oct 2022 11:11:46 -0300
Meredith Montgomery <mmontgomery@levado.to> wrote:
As far as I can tell in my GNU EMACS, all by buffers relevant to context
here are set to UTF-8. I see the letter U in the first letter of the
modeline --- the GNU EMACS status bar.
When I add an UTF-8 message through the command line in ESHELL, it
doesn't display properly when I say ``fossil timeline''. Check it:
--8<---------------cut here---------------start------------->8---
%fs add encoding.txt
ADDED encoding.txt
%fs commit -m 'Na|>ve commit.'
[...]
14:03:28 [f4c20ecefc] *CURRENT* Na|a->ve commit. (user: mer tags: trunk)
So the issue is that you are getting Na|a->ve rather than Na|>ve , right ?
Yes.
Try creating a simple shell script which writes its argument to a file
, do %yourscript 'Na|>ve commit.'
and see if the file gets the correct string.
It seems to do it correctly.
--8<---------------cut here---------------start------------->8--- %./arg2-to-arg1.exe na|>ve test.txt
%cat test.txt
ve%
%cat arg2-to-arg1.c
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
if (argc < 3) {
printf("usage: %s <string> <file>\n", argv[0]);
exit(10);
}
FILE* out = fopen(argv[2], "w");
if (out == NULL) { perror("fopen"); exit(1); }
if (fputs(argv[1], out) == EOF) { perror("fputs"); exit(2); }
return 0;
}
%--8<---------------cut here---------------end--------------->8---
[...]
--8<---------------cut here---------------end--------------->8---
However, if instead of the command-line, I use a regular GNU EMACS
buffer, it works just fine.
--8<---------------cut here---------------start------------->8---
%echo kkk >> encoding.txt
%fs commit
[...]
%fs timeline
=== 2022-10-01 ===
14:09:39 [09ea1b5d5b] *CURRENT* Naivet|-. (user: mer tags: trunk)
--8<---------------cut here---------------end--------------->8---
I know. You'll tell me go to a GNU EMACS newsgroup. I'll look for
one. Thank you.
See my crossposting.
Thank you!
--- Synchronet 3.21d-Linux NewsLink 1.2