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

Re: Stupid quoting...

From
David Kastrup <dak@gnu.org>
Date
Jun 19, 2007, 07:44 UTC
Message-ID
<86sl8owfqj.fsf@lola.quinscape.zz>
In-Reply-To
<Pine.LNX.4.64.0706190156110.4059@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 17 quoted lines
> On Mon, 18 Jun 2007, David Kastrup wrote:
>
>> Jakub Narebski <jnareb@gmail.com> writes:
>> 
>> > David Kastrup wrote:
>> >
>> >> what is the point in quoting file names and their characters in 
>> >> git-diff's output?
>> >
>> > 7-bit email.
>> 
>> I think it can be reasonably safely assumed that people using 8-bit
>> characters in file names will not refrain from using them in the files
>> themselves: [...]
>
> However, please realise that chances are very good that none of these 
> 8-bit unclean things show in the diff.

Puh-leaze. So you prefer a behavior which makes it harder to notice problems, on the chance that it may sometimes work by accident?

If you want to process diffs, you need an 8-bit clean (and space-preserving) channel, period. This is the task of mail encapsulation, not of the diff utility.

> Besides, the proper fix would probably involve making
> none-8-bit-clean diffs binary diffs (for FORMAT_EMAIL only, of
> course).

This is so utterly absurd for people working on non-English documents that I get the expression you are pulling people's legs considering your Email address.

Show 6 quoted lines
>> So I don't see what quoting such characters in file names is
>> supposed to buy with regard to diff output in 7-bit email.
>
> But isn't that obvious? Even if the diffs are not 7-bit clean, which
> I consider as an error, quoting the file names is already half what
> is required.

What is required is a reliable mail channel, and there are a lot of tools for that, from uuencode to various MIME standards and encapsulation methods. The right tool for the right job. Everything else is a mistake because it makes life harder for everyone, not just those using mail, for no good purpose.

> Don't just throw away backwards compatibility, only because it does
> not fit your wishes.

There is no backwards compatibility involved here _at_ _all_. No current tool can process the quoted mess, not even humans (random octal escape sequences are not more readable than characters, or we never would have progressed beyond ASCII).

So you are not talking about backward compatibility, but rather gratuitous forward _incompatibility_, and nobody is better off by the latter. There is no point in making life harder for people using non-ASCII characters when there is absolutely no benefit whatsoever involved for those restricting themselves to ASCII characters.

-- 
David Kastrup
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 13 of 35 in “Stupid quoting...”
  1. David KastrupJun 13, 2007
  2. Alex RiesenJun 13, 2007
  3. Johannes SchindelinJun 13, 2007
  4. Steven GrimmJun 14, 2007
  5. Johannes SchindelinJun 14, 2007
  6. Steven GrimmJun 14, 2007
  7. Johannes SchindelinJun 14, 2007
  8. Junio C HamanoJun 14, 2007
  9. Jakub NarebskiJun 16, 2007
  10. David KastrupJun 18, 2007
  11. Jeff KingJun 18, 2007
  12. Johannes SchindelinJun 19, 2007
  13. David KastrupJun 19, 2007
  14. Johannes SchindelinJun 19, 2007
  15. Olivier GalibertJun 19, 2007
  16. Johannes SchindelinJun 14, 2007
  17. David KastrupJun 14, 2007
  18. Alex RiesenJun 14, 2007
  19. Alex RiesenJun 14, 2007
  20. Johannes SchindelinJun 20, 2007
  21. Junio C HamanoJun 20, 2007
  22. David KastrupJun 20, 2007
  23. Jakub NarebskiJun 20, 2007
  24. David KastrupJun 20, 2007
  25. Jan HudecJun 24, 2007
  26. Robin RosenbergJun 24, 2007
  27. Junio C HamanoJun 24, 2007
  28. David KastrupJun 24, 2007
  29. Junio C HamanoJun 24, 2007
  30. Jeff KingJun 24, 2007
  31. Jan HudecJun 24, 2007
  32. Robin RosenbergJun 24, 2007
  33. David KastrupJun 24, 2007
  34. Robin RosenbergJun 24, 2007
  35. David KastrupJun 24, 2007

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.