Defect #16852
closedGit: non-ascii filname cannot be treated above Git 1.7.10 on Windows
0%
Description
I found Git repository cannot open Chinese folder and Chinese file content.
Reproduce steps:
1. Create a sample git repository with some Chinese folder name and Chinese file name.
2. Add this to redmine in windows 7;
3. Click Chinese file name, it cannot show the file content and history.
No error message for file history.
Error message for "View": "The entry or revision was not found in the repository."
The error message in Webrick is: "fatal: Path 'abc/鍝坸yz.txt' does not exist in 'master'".
4. Click English file name, it can show the file content and history normally.
5. Click Chinese folder name, it cannot show the file list in this folder.
The error message is: "The entry or revision was not found in the repository.".
The error message in Webrick is: "fatal: Not a valid object name master:娴嬭瘯"
'abc/鍝坸yz.txt' should be utf-8 format of Chinese file name "abc/哈xyz.txt". (abc is another folder)
'娴嬭瘯' should be utf-8 forma of Chinese folder name '测试'.
Version information:
system: windows 7 Chinese
Redmine: v2.51, v2.50, v2.43 all tested;
Ruby: 1.93 p 448, 1.87 also tested;
Git: 1.9.2
DB: sqlite3
After multiple redmine and Ruby version test, this problem is the same.
Some pictures are attached for your reference.
Files
Updated by Jeffrey Ren about 11 years ago
BTW, webrick, thin are both tested. The problem is the same.
So I believe this seems only relevant the unicode path support for git in Redmine.
Updated by Toshi MARUYAMA about 11 years ago
- Subject changed from Git repository cannot open Chinese folder and Chinese file content for Redmine 2.5.1 in Windows 7 to Git: non-ascii filname cannot be treated above 1.7.10 on Windows
- Status changed from New to Closed
- Resolution set to Wont fix
We can't do anything.
See r9750.
I recommend you to use non Windows.
Updated by Toshi MARUYAMA about 11 years ago
- Subject changed from Git: non-ascii filname cannot be treated above 1.7.10 on Windows to Git: non-ascii filname cannot be treated above Git 1.7.10 on Windows