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

Re: [RFC] send-email: UTF-8 encoding in subject line

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2026, 17:30 UTC
Message-ID
<xmqqldgmrom9.fsf@gitster.g>
In-Reply-To
<20260221140049.579922-1-shreyanshpaliwalcmsmn@gmail.com>
Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com> writes:
>> Yeah, that was a bit confusing for me until I got used to it. Maybe
>> saying “[default: UTF-8]” would be a small and definite improvement?

The current message can be mistaken, if the reader does not READ, if it is asking a yes/no question, but with the "default" label, you cannot imagine answering "yes", which is clearly not one of the things in the same class as "UTF-8" that is given as the default, which also serves as an example.

This is indeed a clever hack (not hack on computer code but hack on the mind of human who is reading the message).

> That makes sense, I tried it below.
> I also wondered whether, in addition to this, it might be helpful to warn on
> an invalid charset, and/or possibly fall back to UTF-8.

Agreed on the first half of the statement, if we have an easy and portable way to tell if a given random string names a valid charset. I do not recommend to "fall back" to anything, if we are asking an input from the user.

Thanks.
Previous: Shreyansh PaliwalNext: Shreyansh Paliwal
Message 4 of 27 in “[RFC] send-email: UTF-8 encoding in subject line”
  1. Shreyansh PaliwalFeb 20, 2026
  2. Ben KnobleFeb 21, 2026
  3. Shreyansh PaliwalFeb 21, 2026
  4. Junio C HamanoFeb 21, 2026
  5. Shreyansh PaliwalFeb 22, 2026
  6. D. Ben KnobleFeb 22, 2026
  7. Shreyansh PaliwalFeb 22, 2026
  8. Ben KnobleFeb 23, 2026
  9. Shreyansh PaliwalFeb 24, 2026
  10. Philip OakleyFeb 22, 2026
  11. D. Ben KnobleFeb 22, 2026
  12. send-email: validate charset name in 8bit encoding promptShreyansh Paliwal, Feb 24, 2026
  13. Junio C HamanoFeb 24, 2026
  14. send-email: validate charset name in 8bit encoding promptShreyansh Paliwal, Feb 24, 2026
  15. Junio C HamanoFeb 24, 2026
  16. Shreyansh PaliwalFeb 24, 2026
  17. D. Ben KnobleFeb 25, 2026
  18. Shreyansh PaliwalFeb 26, 2026
  19. send-email: validate charset name in 8bit encoding promptShreyansh Paliwal, Feb 26, 2026
  20. Junio C HamanoFeb 26, 2026
  21. Junio C HamanoFeb 26, 2026
  22. Shreyansh PaliwalFeb 28, 2026
  23. Shreyansh PaliwalFeb 28, 2026
  24. send-email: validate charset name in 8bit encoding promptShreyansh Paliwal, Feb 28, 2026
  25. D. Ben KnobleFeb 28, 2026
  26. Junio C HamanoMar 2, 2026
  27. Shreyansh PaliwalMar 3, 2026

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.