Re: [PATCH 1/4] Add routines for filenames encoding <local encoding> <-> UTF-8
- From
Timur Sufiev <tsufiev@gmail.com>
- Date
- Oct 28, 2009, 07:15 UTC
- Message-ID
- <4ae7ef9d.0f1abc0a.5b53.1a73@mx.google.com>
- In-Reply-To
- <alpine.DEB.2.00.0910271515270.17168@ds9.cixit.se>
Show 5 quoted lines
>> If `i18n.filenameslocalencoding' option was set via git-config to a >> correct <codepage> encoding, 2 things should be done: > > Windows supports UTF-16 file names, but need to use wchar_t APIs for fopen() > and friends. Have you looked at any of that?
No, I didn't look towards Windows handling of Unicode, because Git under Windows works well enough without that: I've built Git in MinGW/MSYS environmment (using the patches we're discussing) and it handles cyrillic filenames in Windows ANSI CP1251 codepage just as was planned: writes filenames to tree objects in UTF-8, checks out them into working dir in CP1251, other stuff as git-clone, git-diff, git-status, etc also works ok. One remaining issue (offtopic here, as far as I understand) to make TortoiseGit work with UTF-8 Git's output.
> -- > \\// Peter - http://www.softwolves.pp.se/
-- Timur Sufiev