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)
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
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.
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
Should be fixed by DZ v5. http://rjbs.manxome.org/rubric/entry/2021 Thanks for your patience. -- rjbs