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

Re: OS X and umlauts in file names

From
TSThomas Singer <thomas.singer@syntevo.com>
Date
Nov 26, 2009, 08:28 UTC
Message-ID
<4B0E3C14.9070404@syntevo.com>
In-Reply-To
<m21vjmkyxh.fsf@igel.home>
Hi Andreas,
Thank you for this hint. When trying
 toms-mac-mini:git-umlauts tom$ git stage $'U\314\210berla\314\210nge.txt'

git shows me no error or other output, but invoking 'git status' again shows no difference, the file is still showing up as new file.

I've also tried to use double backslashes, but I could not enter a backslash in the OS X Terminal (works fine in other applications). :(

-- 
Tom

Andreas Schwab wrote:
> Thomas Singer <thomas.singer@syntevo.com> writes:
> 
>> I've did following:
>>
>>  toms-mac-mini:git-umlauts tom$ ls
>>  Überlänge.txt
>>  toms-mac-mini:git-umlauts tom$ git status
>>  # On branch master
>>  #
>>  # Initial commit
>>  #
>>  # Changes to be committed:
>>  #   (use "git rm --cached <file>..." to unstage)
>>  #
>>   #	new file:   "U\314\210berla\314\210nge.txt"
>>  #
>>  toms-mac-mini:git-umlauts tom$ git stage "U\314\210berla\314\210nge.txt"
>>  fatal: pathspec 'U\314\210berla\314\210nge.txt' did not match any files
> 
> Try $'U\314\210berla\314\210nge.txt' instead.
> "U\314\210berla\314\210nge.txt" is the same as
> "U\\314\\210berla\\314\\210nge.txt" to the shell.
> 
> Andreas.
> 
Previous: Andreas SchwabNext: Jay Soffian
Message 14 of 20 in “OS X and umlauts in file names”
  1. Thomas SingerNov 23, 2009
  2. Thomas RastNov 23, 2009
  3. Thomas SingerNov 23, 2009
  4. Johannes SchindelinNov 23, 2009
  5. Thomas SingerNov 23, 2009
  6. Jakub NarebskiNov 23, 2009
  7. Martin LanghoffNov 23, 2009
  8. Daniel BarkalowNov 23, 2009
  9. Thomas SingerNov 25, 2009
  10. B Smith-MannschottNov 25, 2009
  11. Martin LanghoffNov 25, 2009
  12. Martin LanghoffNov 25, 2009
  13. Andreas SchwabNov 25, 2009
  14. Thomas SingerNov 26, 2009
  15. Jay SoffianNov 26, 2009
  16. Thomas SingerNov 27, 2009
  17. Thomas SingerNov 27, 2009
  18. Martin LanghoffNov 27, 2009
  19. Thomas SingerNov 27, 2009
  20. Jay SoffianNov 26, 2009

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.