Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 70937
Status: resolved
Priority: 0/
Queue: Dist-Zilla

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

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



Subject: double-encoded author name in META.json
Date: Tue, 13 Sep 2011 20:02:29 +0200
To: bug-Dist-Zilla [...] rt.cpan.org
From: ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker)
Download (untitled) / with headers
text/plain 467b
when using the MetaJSON plugin with a UTF-8 author name in dist.ini, the name ends up double-encoded in META.json: $ grep Ilmari dist.ini META.* dist.ini:author = Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> META.json: "Dagfinn Ilmari Manns\u00c3\u00a5ker <ilmari@ilmari.org>" META.yml: - 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>' -- ilmari "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen
Download (untitled) / with headers
text/plain 433b
Unfortunately, this is actually a bug in the MetaYAML plugin, because it's *not* double encoding the character. While the plan is to have dist.ini be UTF-8, it's currently being read as Latin-1. So, MetaJSON is correctly treating the UTF-8 sequence c3 a5 as two Latin-1 characters and escaping them. MetaYAML ought to be encoding the result of YAML::Tiny::Dump into UTF-8, which would make it have output consistent with MetaJSON.
Download (untitled) / with headers
text/plain 484b
Le 2011-10-20 00:37:39, CJM a écrit : Show quoted text
> Unfortunately, this is actually a bug in the MetaYAML plugin, because > it's *not* double encoding the character. While the plan is to have > dist.ini be UTF-8, it's currently being read as Latin-1. So, MetaJSON > is correctly treating the UTF-8 sequence c3 a5 as two Latin-1 characters > and escaping them.
This is a bug in the dist.ini reading layer. Proper decoding should done early. -- Olivier Mengué - http://perlresume.org/DOLMEN
Download (untitled) / with headers
text/plain 104b
Should be fixed by DZ v5. http://rjbs.manxome.org/rubric/entry/2021 Thanks for your patience. -- rjbs


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.