Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-ChangelogFromGit CPAN distribution.

Report information
The Basics
Id: 105996
Status: open
Priority: 0/
Queue: Dist-Zilla-Plugin-ChangelogFromGit

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.016
Fixed in: (no value)



Subject: Mojibake in generated Changes files
On 2015-07-21 01:21:24, DOLMEN wrote: Show quoted text
> My name is « Olivier Mengué », not « Olivier Mengué ». > Examples of failures: > https://metacpan.org/source/BINGOS/Dist-Zilla-Plugin-GithubMeta- > 0.54/Changes#L1 > https://metacpan.org/source/GETTY/Dist-Zilla-Plugin-TravisCI- > 0.008/Changes#L1 > https://metacpan.org/source/APOCAL/Dist-Zilla-Plugin-MinimumPerl- > 1.006/CommitLog#L1 > > It seems that DZP::ChangelogFromGit has a double encoding problem.
It appears as if the content from git is being fetched as a sequence of utf8-encoded bytes, so the thing to do here is to pass "encoding => 'bytes'" to Dist::Zilla::File::InMemory's constructor so it is not encoded again. However, Git::Repository probably should be returning data in (decoded) characters... I'm not sure how complicated this would be. Git::Wrapper is getting unicode things right now, but it's been a struggle to make it work everywhere (i.e. Windows).