git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fixed two bugs in git-cvsimport-script.

From
David Kågedal <davidk@lysator.liu.se>
Date
Aug 17, 2005, 08:07 UTC
Message-ID
<u5tiry50ywy.fsf@lysator.liu.se>
In-Reply-To
<u5tacjjdpxq.fsf@lysator.liu.se>
David Kågedal <davidk@lysator.liu.se> writes:
Show 5 quoted lines
> The git-cvsimport-script had a copule of small bugs that prevented me
> from importing a big CVS repository.
>
> The first was that it didn't handle removed files with a multi-digit
> primary revision number.

I noticed that this patch was accepted, which is great. But there is a problem with the character encoding in the commit message.

The commit in question is b0921331030d52febf52839753eee1b2b9ca1f24

The "author" field is written as "iso-8859-1?Q?David_K=E5gedal <davidk@lysator.liu.se>", which is taken from the "From:" line in my email. This should be decoded by the patch import script before generating the commit message.

But the trickier question is what encoding to use in the commit message.

This is the signed-off line in my mail:
  Signed-off-by: David Kågedal <davidk@lysator.liu.se>
This is what appears in the commit:
  Signed-off-by: David K?5gedal <davidk@lysator.liu.se>
Using ISO-8859-15 or UTF-8 would probably have made more sense here.

Apparently, my mail was encoded as QP, which is not very popular around here. But it seems that the diff part was decoded properly before applying. Was that done manually?

Since my name contains a character that is not part of ASCII, it isn't really an option to send the mails encoded as ASCII. I could probably convince my mailer (Gnus) to send it as "8bit" or "binary", but that is a pretty limited solution. An it isn't even legal to use anything but ASCII in the mail header.

-- 
David Kågedal
Previous: David KågedalNext: Junio C Hamano
Message 2 of 6 in “Fixed two bugs in git-cvsimport-script.”
  1. Fixed two bugs in git-cvsimport-script.David Kågedal, Aug 15, 2005
  2. David KågedalAug 17, 2005
  3. Junio C HamanoAug 17, 2005
  4. Junio C HamanoAug 17, 2005
  5. David KågedalAug 17, 2005
  6. David KågedalAug 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.