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

Re: t9200 still failing...

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Feb 3, 2007, 19:41 UTC
Message-ID
<E7A51B21-ECE4-4B0A-8CA2-538727AA6BFF@silverinsanity.com>
In-Reply-To
<82643737-7D5F-4A73-83BA-EB5AD9BBA5EA@wf227.com>
On Feb 3, 2007, at 2:06 PM, Wolfgang Fischer wrote:
Show 6 quoted lines
> A simple test would be to create a UFS image, mount it somewhere,  
> and run the tests inside the mounted UFS image. If the test  
> succeeds, there is a getdirent() somewhere in the codepath, where  
> you are not expecting it. OTOH we can assume already, that there is  
> a getdirents() somewhere, so you might just start with a debugger   
> with an appropriate breakpoint.

The true solution was to read the code more completely. The way git tests for things that are ignored is to read the directory and compare it to the pathspecs from the command line. If we don't find a match, it's obviously because the file was in an ignore file. Unfortunately, in OS X it's not obvious because of the mismatch between NFC and NFD on different file systems.

The solution, as I see it, is to use a Unicode-aware comparison in dir.c:match_one(). ICU appears to both be available on OS X (although without headers) and have the needed functions. I'm unfamiliar with both ICU and this chunk of the git internals, but I'll work on a proof of concept patch.

~~ Brian
Previous: Brian Gernhardt
Message 17 of 17 in “t9200 still failing...”
  1. Brian GernhardtFeb 3, 2007
  2. Wolfgang FischerFeb 3, 2007
  3. Brian GernhardtFeb 3, 2007
  4. Use "-f" when adding files with odd names in t9200.Brian Gernhardt, Feb 3, 2007
  5. Junio C HamanoFeb 3, 2007
  6. Brian GernhardtFeb 3, 2007
  7. Junio C HamanoFeb 3, 2007
  8. Brian GernhardtFeb 3, 2007
  9. Junio C HamanoFeb 3, 2007
  10. Junio C HamanoFeb 4, 2007
  11. Shawn O. PearceFeb 4, 2007
  12. Brian GernhardtFeb 4, 2007
  13. Brian GernhardtFeb 4, 2007
  14. Junio C HamanoFeb 5, 2007
  15. Brian GernhardtFeb 5, 2007
  16. Brian GernhardtFeb 6, 2007
  17. Brian GernhardtFeb 3, 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.