Project

General

Profile

Actions

Defect #16852

closed

Git: non-ascii filname cannot be treated above Git 1.7.10 on Windows

Added by Jeffrey Ren about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

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

Chinese-file-name-click.png (5.55 KB) Chinese-file-name-click.png Chinese file name click Jeffrey Ren, 2014-05-10 03:40
Chinese-file-name-view.png (2.9 KB) Chinese-file-name-view.png Chinese file name view Jeffrey Ren, 2014-05-10 03:40
Chinese-folder-click.png (2.87 KB) Chinese-folder-click.png Chinese folder click Jeffrey Ren, 2014-05-10 03:40
redmine version.png (12.8 KB) redmine version.png Redmine version Jeffrey Ren, 2014-05-10 03:40
sample-english-folder.png (12.5 KB) sample-english-folder.png Sample English folder Jeffrey Ren, 2014-05-10 03:40
testgit.png (11.1 KB) testgit.png Testgit repository Jeffrey Ren, 2014-05-10 03:40
sample-english-file.png (5.14 KB) sample-english-file.png Sample English file history Jeffrey Ren, 2014-05-10 03:42
Actions

Also available in: Atom PDF