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:13 UTC
Message-ID
<Pine.LNX.4.64.0511181301320.13959@g5.osdl.org>
In-Reply-To
<200511182245.01713.ismail@uludag.org.tr>
On Fri, 18 Nov 2005, Ismail Donmez wrote:
> 
> Maybe you could officially require all commit messages to be UTF-8 then the 
> problem would be just solved for future commits at least.
Just think about what that would mean for a second.

What do people put in commit messages? They put things like filenames, to indicate that they changed file so-and-so because of issue so-and-so, or they needed to include header file so-and-so to fix a problem.

So by virtue of forcing all commit messages to be in UTF-8, you've suddenly forced all filesystems to do UTF-8 too.

Take that one step further: you've also forced all the file _contents_ you talk about to be in UTF-8, since the commit message might quote part of the file ("'xyzzy' was misspelled, it should be 'abcde'").

Or alternatively, you've forced the commit message to no longer match the reality that it tries to explain.

See the problem?

And that's ignoring the fact that you've unilaterally forced probably 50% of asian users to use an environment that they don't normally use.

Remember: it's actually pretty _easy_ for most of the western world to 
move to UTF-8, because 99% of what we do doesn't really care one whit, and 
the remaining 1% isn't usually even a huge problem (ie it's such a small 
percentage that even if you show the wrong character for it, people 
understand what it said).

There's only one thing that is easier still: to force your way of working on others.

This is why I'm so steadfast on it being just a stream of bytes. Because let's face it, no english-speaking project will ever _really_ care: we'll get a few peoples names wrong, but it's all going to be pretty irrelevant, and there's not going to be any real confusion.

In contrast, _forcing_ people to use UTF-8 results in real problems, and really limits what can be done.

A data stream of 8-bit bytes is really powerful. And oh, btw, it just happens to be the UNIX way.

			Linus
Previous: Ismail DonmezNext: Ismail Donmez
Message 13 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.