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

Re: Rss produced by git is not valid xml?

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 18, 2005, 21:30 UTC
Message-ID
<Pine.LNX.4.64.0511181314470.13959@g5.osdl.org>
In-Reply-To
<20051118205513.GA3168@vrfy.org>
On Fri, 18 Nov 2005, Kay Sievers wrote:
> 
> Actually, the real bug is not to try to prevent binary nonsense in textual
> commit logs, which are distibuted. Remember, that you provide a SCM not a
> filesystem.

I never said they were text, and in fact, I never even said I'm doing an SCM. Quite the reverse. I very much said that I'm doing a filesystem that is flexible.

The fact that the headers are text-like is not so much about text as it is about flexibility and easy tool access. If you look at the git object format, for example, the header is strictly NUL-terminated ASCII, but the object itself is a pure binary data stream. Which obviously just _happens_ to often be text too, since quite often the object contents is something like a C source file, but there's a real power to _not_ thinking that it means that files are text-files.

And I like UTF-8, but the fact is, all my editors and mail tools are still Latin-1. My editor converts the UTF-8 input into latin1 and keeps it in that format on disk (it writes it to the _screen_ as UTF-1 just to make the glyphs come out right, but the file it works with is still latin1).

Could I change? Yup, I could change pretty easily. I wrote the code that did the latin1 conversion, and I've got source for my tools, so I could just decide one day that I'll join the 21st century and switch. I just haven't done so yet.

The fact that _I_ can't be bothered, even though I'm in just about the best possible situation (I've got a keyboard with åäö on it, but they're not in my name, so I don't use them that much) should tell you something. Namely, it should tell you that there's a _lot_ of people who have a much harder time than I do in changing their setups.

I think most of Asia _still_ doesn't use utf-8. And I _guarantee_ you that it's a hell of a lot easier for you to complain about it and say "they should" than it is for them to actually do so and convert all the programs they use.

On this mailing list, the only person that I've seen pipe up about these things in the past _and_ that I suspect actually has to work with this thing in real life (instead of just from a theoretical "this is how things should be done" standpoint) is Junio. And last I heard (if I remember correctly), Junio explicitly said that a lot of the people he works with still use shift-jis.

And I'm not surprised. Look on the web. As far as I know, shift-jis is still much more common than utf-8.

AND IT DOESN'T MATTER ONE WHIT WHEN SOME GEEK SAYS "THEY SHOULDN'T DO THAT, THEN"!

Software should conform to people, not the other way around. 
		Linus
Previous: Kay SieversNext: Ismail Donmez
Message 19 of 52 in “Rss produced by git is not valid xml?”
  1. Ismail DonmezNov 18, 2005
  2. Ismail DonmezNov 18, 2005
  3. Ismail DonmezNov 18, 2005
  4. Kay SieversNov 18, 2005
  5. Ismail DonmezNov 18, 2005
  6. Linus TorvaldsNov 18, 2005
  7. H. Peter AnvinNov 18, 2005
  8. Linus TorvaldsNov 18, 2005
  9. H. Peter AnvinNov 18, 2005
  10. Josef WeidendorferNov 18, 2005
  11. Kay SieversNov 18, 2005
  12. Ismail DonmezNov 18, 2005
  13. Linus TorvaldsNov 18, 2005
  14. Ismail DonmezNov 18, 2005
  15. Junio C HamanoNov 18, 2005
  16. Ismail DonmezNov 18, 2005
  17. Junio C HamanoNov 19, 2005
  18. Kay SieversNov 18, 2005
  19. Linus TorvaldsNov 18, 2005
  20. Ismail DonmezNov 18, 2005
  21. Linus TorvaldsNov 18, 2005
  22. H. Peter AnvinNov 18, 2005
  23. Linus TorvaldsNov 18, 2005
  24. H. Peter AnvinNov 18, 2005
  25. Andreas EricssonNov 18, 2005
  26. H. Peter AnvinNov 19, 2005
  27. Andreas EricssonNov 19, 2005
  28. Johannes SchindelinNov 19, 2005
  29. Linus TorvaldsNov 18, 2005
  30. H. Peter AnvinNov 18, 2005
  31. Johannes SchindelinNov 19, 2005
  32. Linus TorvaldsNov 18, 2005
  33. Johannes SchindelinNov 19, 2005
  34. Junio C HamanoNov 19, 2005
  35. Linus TorvaldsNov 19, 2005
  36. Junio C HamanoNov 19, 2005
  37. Linus TorvaldsNov 19, 2005
  38. Johannes SchindelinNov 20, 2005
  39. Linus TorvaldsNov 20, 2005
  40. Johannes SchindelinNov 20, 2005
  41. Johannes SchindelinNov 19, 2005
  42. H. Peter AnvinNov 20, 2005
  43. Johannes SchindelinNov 21, 2005
  44. H. Peter AnvinNov 21, 2005
  45. Junio C HamanoNov 19, 2005
  46. H. Peter AnvinNov 19, 2005
  47. Junio C HamanoNov 27, 2005
  48. Linus TorvaldsNov 27, 2005
  49. 2/3 mailinfo: allow -u to fall back on latin1 to utf8 conversion.Junio C Hamano, Nov 28, 2005
  50. H. Peter AnvinNov 28, 2005
  51. Junio C HamanoNov 28, 2005
  52. Kay SieversNov 27, 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.