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

Re: Stupid quoting...

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 20, 2007, 02:19 UTC
Message-ID
<Pine.LNX.4.64.0706200307070.4059@racer.site>
In-Reply-To
<86645kutow.fsf@lola.quinscape.zz>
Hi,

[sorry for responding so late, your mail got stuck in the GWB-like spam filter.]

On Tue, 19 Jun 2007, David Kastrup wrote:
Show 21 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > Hi,
> >
> > On Tue, 19 Jun 2007, David Kastrup wrote:
> >
> >> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >> 
> >> > Don't just throw away backwards compatibility, only because it does 
> >> > not fit your wishes.
> >> 
> >> There is no backwards compatibility involved here _at_ _all_.
> >
> > I was not talking about Git here. The specification for SMTP is not
> > going to change just because you want it. There are still mail
> > servers out there which speak 7-bit, and the standard requires you
> > to cope with them.
> 
> Is there a reason you elide all the relevant material before replying?
> I repeat: this is the task of MIME, uuencode or a number of other
> mechanisms.

The problem there, of course, is that you still might want to reply to the patch, even if the name was chosen as non-ASCII (which is a sin, if you believe in UNIX).

Usually, comments are not done on the filenames, so they can be as escaped as they want in an email, as long as the commenter still recognizes their names.

Show 5 quoted lines
> git is not a mail transport system, and there are far too many other 
> problems in unarmored mail (like spaces, wrapping and other stuff) that 
> it would make any sense to mangle diffs and other material in a manner 
> that makes it quite unprocessable for _both_ human readers as well as 
> scripts intended to process them.

There you have a point. If the name is non-ASCII, it uses a specific encoding. if the human reader has a different encoding set in her display, is it any better to display garbled characters (possibly leaving the console in a corrupted state), or to display escaped characters?

And scripts have been known to get encodings all wrong, so I think the escaping is the best way out, absent a perfect knowledge of what encoding the file name was meant for.

> Anyway, it has become quite clear from this exchange that you have 
> already made the decision not to be convinced by me and will not be 
> deterred from that, even though the problem is not the one you initially 
> tried deriding me for (spaces in filenames).

I am sorry. No, really, I am sorry that you received it as derision. By all means, it was _not_ meant as that. The problem was on my side, not yours: I simply did not get that you were talking about non-ASCII characters, even if you were talking about them.

Show 5 quoted lines
> Hopefully some developer with less of an attitude towards non-ASCII 
> usage will find himself able to follow the arguments with some more 
> objectivity.
> 
> I don't see our discourse leading anywhere: the points have been made.

I would really, really, really like to see a solution. Alas, I cannot think of one, other than _forcing_ the developers to use ASCII-only filenames.

Note that there is no convention yet in Git to state which encoding your filenames are supposed to use. And in fact, we already had a fine example in git.git why this is particularly difficult. MacOSX is too clever to be true, in that it gladly takes filenames in one encoding, but reads those filenames out in _another_ encoding. Thus, a "git add <filename>" can well end up in git-status saying that a file was deleted, and another file (actually the same, but in a different encoding) is untracked.

Again, I would be _so_ glad if you solved the problem, now that I actually understand it.

Ciao, Dscho

Previous: Alex RiesenNext: Junio C Hamano
Message 20 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.