[git 0005298]: git fast-export producing corrupt output with UTF8 locale on Solaris 11
Mantis Bug Tracker
noreply at opencsw.org
Mon Feb 20 10:21:27 CET 2017
The following issue has been ASSIGNED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=5298
======================================================================
Reported By: danny
Assigned To: dam
======================================================================
Project: git
Issue ID: 5298
Category: regular use
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2017-02-19 18:02 CET
Last Modified: 2017-02-20 10:21 CET
======================================================================
Summary: git fast-export producing corrupt output with UTF8
locale on Solaris 11
Description:
On Solaris 11, using git 2.3.1 or 2.4.0 from OpenCSW, when commiter or
author contain multibyte characters, git fast-export writes extra garbage
after the author/committer line:
$ locale
LANG=en_US.UTF8
LC_CTYPE="en_US.UTF8"
[...]
LC_ALL=
$ git fast-export --all
blob
mark :1
data 6
Hello
reset refs/heads/master
commit refs/heads/master
mark :2
author Füü Bär <foo at example.com> 1487506001 +0100
co
committer Füu Bär <foo at example.com> 1487506001 +0100
data 6
Hello
M 100644 :1 foo.txt
reset refs/heads/master
from :2
With LC_CTYPE=C the problem disappears (this correct output can be used
with git fast-import to create a test case repository):
$ LC_CTYPE=C git fast-export --all
blob
mark :1
data 6
Hello
reset refs/heads/master
commit refs/heads/master
mark :2
author Füü Bär <foo at example.com> 1487506001 +0100
committer Füu Bär <foo at example.com> 1487506001 +0100
data 6
Hello
M 100644 :1 foo.txt
reset refs/heads/master
from :2
======================================================================
More information about the bug-notifications
mailing list