Skip Menu |

This queue is for tickets about the Config-JSON CPAN distribution.

Report information
The Basics
Id: 126024
Status: new
Priority: 0/
Queue: Config-JSON

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

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



Subject: Tests fail on Windows due to creating bad JSON
On Windows, t/Duplicate.t fails because on Windows, the variable $firstIncludeFile contains a backslash and is interpolated directly into the JSON as "includes" : [ "$firstIncludeFile", "$secondIncludeFile"] instead of doubling the backslashes as one does for JSON. This makes the test fail. Adding two properly escaped values: (my $firstIncludeFile_q = $firstIncludeFile) =~ s!\\!\\\\!g; (my $secondIncludeFile_q = $secondIncludeFile) =~ s!\\!\\\\!g; and interpolating these, makes the tests pass: "includes" : [ "$firstIncludeFile_q", "$secondIncludeFile_q"]