Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The disks are getting full; purge a file today.


computers / comp.misc / fossil: encoding in commit messages

SubjectAuthor
* fossil: encoding in commit messagesMeredith Montgomery
`* Re: fossil: encoding in commit messagesSpiros Bousbouras
 `- Re: fossil: encoding in commit messagesMeredith Montgomery

1
fossil: encoding in commit messages

<86edvreiql.fsf@levado.to>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1949&group=comp.misc#1949

  copy link   Newsgroups: comp.misc
Path: i2pn2.org!i2pn.org!aioe.org!rhdvVAudUB1gc/5Lf/6wFA.user.46.165.242.91.POSTED!not-for-mail
From: mmontgomery@levado.to (Meredith Montgomery)
Newsgroups: comp.misc
Subject: fossil: encoding in commit messages
Date: Sat, 01 Oct 2022 11:11:46 -0300
Organization: Aioe.org NNTP Server
Message-ID: <86edvreiql.fsf@levado.to>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="46437"; posting-host="rhdvVAudUB1gc/5Lf/6wFA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
Cancel-Lock: sha1:bLUTheRUcOw3RmGel3KO+BEG8Po=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Meredith Montgomery - Sat, 1 Oct 2022 14:11 UTC

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.'
Pull from https://mer@somewhere.edu/test
Round-trips: 1 Artifacts sent: 0 received: 0
Pull done, wire bytes sent: 442 received: 1959 ip: 5.161.138.46
New_Version: f4c20ecefc9d04d5fd2548eb4d3008d9ffb759a4deebedd595b222f81eef6b1f
Sync with https://mer@somewhere.edu/test
Round-trips: 1 Artifacts sent: 2 received: 0
Sync done, wire bytes sent: 2342 received: 309 ip: 5.161.138.46

%fs timeline
=== 2022-10-01 ===
14:03:28 [f4c20ecefc] *CURRENT* Naïve commit. (user: mer tags: trunk)
[...]
--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
Pull from https://mer@somewhere.edu/test
Round-trips: 1 Artifacts sent: 0 received: 0
Pull done, wire bytes sent: 437 received: 2118 ip: 5.161.138.46
emacsclientw ./ci-comment-A2803F45F10B.txt
Waiting for Emacs...
Pull from https://mer@somewhere.edu/test
Round-trips: 1 Artifacts sent: 0 received: 0
Pull done, wire bytes sent: 441 received: 2118 ip: 5.161.138.46
New_Version: 09ea1b5d5b8d776d61a74bb412cd58bd8b6f82323c2f539a1eb0d915f7026f20
Sync with https://mer@somewhere.edu/test
Round-trips: 1 Artifacts sent: 2 received: 0
Sync done, wire bytes sent: 2496 received: 309 ip: 5.161.138.46

%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.

Re: fossil: encoding in commit messages

<rB1fCPSyWeDxW1iy5@bongo-ra.co>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1950&group=comp.misc#1950

  copy link   Newsgroups: comp.misc gnu.emacs.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: spibou@gmail.com (Spiros Bousbouras)
Newsgroups: comp.misc,gnu.emacs.help
Subject: Re: fossil: encoding in commit messages
Date: Sat, 1 Oct 2022 14:41:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <rB1fCPSyWeDxW1iy5@bongo-ra.co>
References: <86edvreiql.fsf@levado.to>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 1 Oct 2022 14:41:41 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="56a761b65d048afe9fef5f34847109df";
logging-data="1438888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/d8MxAb4DW1WgDpbNa+hDm"
Cancel-Lock: sha1:b6+72hOSaTJ9fScCcrs8lsC7P3g=
In-Reply-To: <86edvreiql.fsf@levado.to>
X-Server-Commands: nowebcancel
X-Organisation: Weyland-Yutani
 by: Spiros Bousbouras - Sat, 1 Oct 2022 14:41 UTC

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ïve commit. (user: mer tags: trunk)

So the issue is that you are getting Naïve rather than Naïve , right ?
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.

> [...]
> --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.

--
vlaho.ninja/prog

Re: fossil: encoding in commit messages

<86bkqvcr0z.fsf@levado.to>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1951&group=comp.misc#1951

  copy link   Newsgroups: comp.misc gnu.emacs.help
Path: i2pn2.org!i2pn.org!aioe.org!rhdvVAudUB1gc/5Lf/6wFA.user.46.165.242.91.POSTED!not-for-mail
From: mmontgomery@levado.to (Meredith Montgomery)
Newsgroups: comp.misc,gnu.emacs.help
Subject: Re: fossil: encoding in commit messages
Date: Sat, 01 Oct 2022 15:55:40 -0300
Organization: Aioe.org NNTP Server
Message-ID: <86bkqvcr0z.fsf@levado.to>
References: <86edvreiql.fsf@levado.to> <rB1fCPSyWeDxW1iy5@bongo-ra.co>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="15775"; posting-host="rhdvVAudUB1gc/5Lf/6wFA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:xMqKYLPISQ2gaLDRA5+XqfAobDk=
 by: Meredith Montgomery - Sat, 1 Oct 2022 18:55 UTC

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ïve commit. (user: mer tags: trunk)
>
> So the issue is that you are getting Naï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
naï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!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor