Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Differences CPAN distribution.

Report information
The Basics
Id: 42686
Status: resolved
Priority: 0/
Queue: Test-Differences

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

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



Subject: UTF-8 awareness
It would be nice if the module were UTF-8 aware, so that differences in UTF-8 text showed the characters, rather than escaped byte sequences which are much more verbose and difficult to read.
On 2009-01-22 15:42:29, JPIERCE wrote: Show quoted text
> It would be nice if the module were UTF-8 aware, so that differences in > UTF-8 text showed the characters, rather than escaped byte sequences > which are much more verbose and difficult to read.
Probably this is difficult to achieve, as Test::Differences builds upon Test::Builder, and Test::Builder has no real concept about specifying an output encoding. However, if somebody applies the utf-8 hack documented in Test::More's documentation (see the CAVEATS section there), then Test::Differences could detect if utf8 is in effect by using something like if (grep { /utf.*8/ } PerlIO::get_layers(Test::Builder->new->output)) ... and skip escaping in this case. Regards, Slaven
On Thu Jan 22 15:42:29 2009, JPIERCE wrote: Show quoted text
> It would be nice if the module were UTF-8 aware, so that differences in > UTF-8 text showed the characters, rather than escaped byte sequences > which are much more verbose and difficult to read.
I believe this is fixed in 0.62. Please try that. If it doesn't do what you want, then please open a new ticket, with a patch and tests, cos I don't understand all this encoding stuff.