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

Re: [howto] Kernel hacker's guide to git, updated

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 3, 2005, 01:03 UTC
Message-ID
<Pine.LNX.4.64.0510021752390.31407@g5.osdl.org>
In-Reply-To
<200510010158.j911wiB3005296@inti.inf.utfsm.cl>
[ Sorry about the spam, most of you probably have never cared ]
On Fri, 30 Sep 2005, Horst von Brand wrote:
> 
> I'd been trying my hand at the original version. Need to merge my changes
> with yours...

Heh, now that I got into cleaning things up, I've also been actually fixing things that have long irritated me, but the code was just too messy for me, and my level of care wasn't high enough to overcome.

I fixed the "outputs binary data in the 128-159 range to the terminal" yesterday (which would quite possibly corrupt terminal state if trying to edit binary files), and today I added a "utf-8" mode.

The utf-8 mode is purely about the _terminal_ being in UTF-8. The actual editor is still very much byte-char based, but now it understands 8-bit input that comes in UTF8-encoded, and can output things in UTF-8 format.

(Since UTF-8 is basically always used with Unicode, and the 8-bit subset of Unicode is iso-8859-1 aka Latin1, this is probably _less_ international than the non-UTF8, but hey, what can I say? If you want more, you'd need to teach uemacs about actual UTF8 contents).

The new "emacs.rc" will enable utf-8 mode automatically if $LANG contains the substring "UTF-8", since that _usually_ means that the terminal is in utf-8 mode. If it's wrong, you can add or delete the mode by hand (just like any global mode: Meta-X to add, Meta-Ctrl-X to delete).

Basically, it means that you don't have to switch the whole terminal into latin1 just to use uemacs.

			Linus
Previous: Horst von BrandNext: Horst von Brand
Message 9 of 19 in “Re: Trial git RPM's..”
  1. Horst von BrandJul 11, 2005
  2. Horst von BrandSep 16, 2005
  3. Horst von BrandSep 29, 2005
  4. Linus TorvaldsSep 30, 2005
  5. Junio C HamanoSep 30, 2005
  6. Linus TorvaldsSep 30, 2005
  7. Linus TorvaldsOct 1, 2005
  8. Horst von BrandOct 1, 2005
  9. Linus TorvaldsOct 3, 2005
  10. Horst von BrandNov 1, 2005
  11. Horst von BrandMay 27, 2006
  12. Support for configurable git command aliasesPetr Baudis, May 28, 2006
  13. Jakub NarebskiMay 28, 2006
  14. Jeff KingMay 29, 2006
  15. Junio C HamanoMay 29, 2006
  16. Petr BaudisMay 29, 2006
  17. Horst H. von BrandDec 2, 2006
  18. Sam VilainDec 2, 2006
  19. Linus TorvaldsDec 2, 2006

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.