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

Re: Encoding problem on OSX?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 9, 2010, 23:46 UTC
Message-ID
<20100809234620.GA6418@burratino>
In-Reply-To
<AANLkTiky2uUHfOsh8rNXZPEqTLcNSZowy=Qcm+4Hjn_n@mail.gmail.com>
İsmail Dönmez wrote:
Show 17 quoted lines
> git shortlog HEAD >log &&
> fuzz log >log.predictable &&
> test_cmp expect.template log.predictable
> 
> --- expect.template 2010-08-09 13:45:46.000000000 +0000
> +++ log.predictable 2010-08-09 13:45:46.000000000 +0000
> @@ -1,8 +1,8 @@
>  A U Thor (5):
>        SUBJECT
>        SUBJECT
> -      SUBJECT
> -      SUBJECT
> +      SUBJECT𝄞s 𝄞s a very, very long f𝄞rst l𝄞ne for the comm𝄞t
> message to see 𝄞f 𝄞t 𝄞s wrapped correctly
> +      SUBJECT????s ????s a very, very long f????rst l????ne for the
> comm????t message to see ????f ????t ????s wrapped correctly
>        SUBJECT
Very interesting; thanks for a report.
From the definition of fuzz(), it looks like
	sed "
			s/$_x40/OBJECT_NAME/g
			s/$_x05/OBJID/g
			s/^ \{6\}[CTa].*/      SUBJECT/g
			s/^ \{8\}[^ ].*/        CONTINUATION/g
		" <log >log.fuzzy
failed to completely match the fourth and five lines of the shortlog:
	A U Thor (5):
	      Test
	      This is a very, very long first[etc]
	      Th𝄞s 𝄞s a very, very long f𝄞rst[etc]
	      Th<malformed treble clef>s <malformed treble clef>s a...
Could you confirm this?  What does
	locale
	printf 'Th\360\235\204\236s\n' | sed 's/.*//g'
print?
Jonathan
Previous: İsmail DönmezNext: İsmail Dönmez
Message 2 of 14 in “Encoding problem on OSX?”
  1. İsmail DönmezAug 9, 2010
  2. Jonathan NiederAug 9, 2010
  3. İsmail DönmezAug 10, 2010
  4. Jonathan NiederAug 11, 2010
  5. İsmail DönmezAug 11, 2010
  6. Jonathan NiederAug 11, 2010
  7. İsmail DönmezAug 11, 2010
  8. Jonathan NiederAug 11, 2010
  9. İsmail DönmezAug 11, 2010
  10. İsmail DönmezAug 11, 2010
  11. Jonathan NiederAug 11, 2010
  12. Jonathan NiederSep 27, 2010
  13. Kevin BallardSep 27, 2010
  14. İsmail DönmezSep 27, 2010

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.