Bug#880368: YAML::XS::Load expects utf8 octets, not perl's encoding; use slurp_raw

Don Armstrong don at debian.org
Mon Oct 30 22:27:32 UTC 2017


Package: libconfig-model-dpkg-perl
Severity: normal
Version: 2.101
Tag: patch

YAML::XS::Load (and *hopefully* the other implementations of
YAML::Any::Load?) expect utf8 octets on input, not perl's internal
encoding.

Thus, slurp_raw should be used instead of slurp_utf8. [Though really,
YAML::XS::Load should probably do the right thing if is_utf8 is on,
anyway.]


-- 
Don Armstrong                      https://www.donarmstrong.com

I will not make any deals with you. I've resigned. I will not be
pushed, filed, stamped, indexed, briefed, debriefed or numbered. My
life is my own. I resign.
 -- Patrick McGoohan as Number 6 in "The Prisoner"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use-slurp_raw-for-Load-yaml-to-get-raw-UTF8-octets.patch
Type: text/x-diff
Size: 1437 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20171030/b36a517b/attachment.patch>


More information about the pkg-perl-maintainers mailing list