HomePhorge

Partially fix UTF-8 and PSON encoding tests for Ruby 1.9
2e9460d02b52Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Partially fix UTF-8 and PSON encoding tests for Ruby 1.9

With the introduction of real encoding support in Ruby 1.9, various problems
including incorrectly encoded UTF-8 strings crop up.

By flagging the encoding of the spec file to Ruby, and forcing binary encoding
on strings we compare that contain invalid UTF-8, we can bypass some of those
headaches.

Since PSON is, by design, not compatible with JSON and can do useful things
with arbitrary binary data, this is the most reasonably current choice for how
to handle this troublesome set of data.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb0f9e737fc58: Fix Cisco device canonicalization regular expression on 1.9
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU2e9460d02b52: Partially fix UTF-8 and PSON encoding tests for Ruby 1.9 (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM