mirror of
https://github.com/git/git.git
synced 2024-12-15 12:53:36 +08:00
ccbfc96dc4
When fast-export encounters a commit with an 'encoding' header, it tries to reencode in UTF-8 and then drops the encoding header. However, if it fails to reencode in UTF-8 because e.g. one of the characters in the commit message was invalid in the old encoding, then we need to retain the original encoding or otherwise we lose information needed to understand all the other (valid) characters in the original commit message. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 line
17 B
Plaintext
1 line
17 B
Plaintext
Pi: ð; Invalid: ÿ |