The following issue has been SUBMITTED. ====================================================================== https://www.opencsw.org/mantis/view.php?id=5298 ====================================================================== Reported By: danny Assigned To: ====================================================================== Project: git Issue ID: 5298 Category: regular use Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2017-02-19 18:02 CET Last Modified: 2017-02-19 18:02 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 <f...@example.com> 1487506001 +0100 co committer Füu Bär <f...@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 <f...@example.com> 1487506001 +0100 committer Füu Bär <f...@example.com> 1487506001 +0100 data 6 Hello M 100644 :1 foo.txt reset refs/heads/master from :2 ======================================================================