Skip Menu |

This queue is for tickets about the YATT-Lite CPAN distribution.

Report information
The Basics
Id: 95388
Status: resolved
Priority: 0/
Queue: YATT-Lite

People
Owner: hkoba [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: t/lite_xhf.t fails with non-UTF-8 locale
If LC_ALL=C is set, then t/lite_xhf.t fails: # Failed test '[lite/5-utf8.xhf] Japanese ns' # at t/lite_xhf.t line 122. # +---+--------------------------------------+--------------------------+ # | Ln|Got |Expected | # +---+--------------------------------------+--------------------------+ # | 1|'<h2>Hello</h2> |'<h2>Hello</h2> | # | 2|3 x 8 = 24 |3 x 8 = 24 | # * 3|\xff\xff\xff\xff\xff\xff\xff\xff\xff |\x{4e16}\x{754c}\x{ff01} * # | 4|' |' | # +---+--------------------------------------+--------------------------+ # Looks like you failed 1 test of 289. t/lite_xhf.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/289 subtests (less 5 skipped subtests: 283 okay) The same test works fine with a utf-8 locale e.g. LC_ALL=de_DE.UTF-8. Regards, Slaven
Thank you for this too, Slaven. I will add skip logic when LANG !~ /UTF-?8/. But please wait for patch release. Because I need to add massive change for inlineable sub to YATT::Lite too. https://rt.cpan.org/Ticket/Display.html?id=95389 Thanks! hkoba. On 2014-5月-06 火 06:23:51, SREZIC wrote: Show quoted text
> If LC_ALL=C is set, then t/lite_xhf.t fails: > > # Failed test '[lite/5-utf8.xhf] Japanese ns' > # at t/lite_xhf.t line 122. > # +---+--------------------------------------+--------------------------+ > # | Ln|Got |Expected | > # +---+--------------------------------------+--------------------------+ > # | 1|'<h2>Hello</h2> |'<h2>Hello</h2> | > # | 2|3 x 8 = 24 |3 x 8 = 24 | > # * 3|\xff\xff\xff\xff\xff\xff\xff\xff\xff |\x{4e16}\x{754c}\x{ff01} * > # | 4|' |' | > # +---+--------------------------------------+--------------------------+ > # Looks like you failed 1 test of 289. > t/lite_xhf.t ........ > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/289 subtests > (less 5 skipped subtests: 283 okay) > > > > The same test works fine with a utf-8 locale e.g. LC_ALL=de_DE.UTF-8. > > Regards, > Slaven
I think this is fixed in 0.0.9_001. On 2014-05-05 23:05:50, HKOBA wrote: Show quoted text
> Thank you for this too, Slaven. > > I will add skip logic when LANG !~ /UTF-?8/. > But please wait for patch release. Because I need to add > massive change for inlineable sub to YATT::Lite too. > https://rt.cpan.org/Ticket/Display.html?id=95389 > > Thanks! > hkoba. > > > On 2014-5月-06 火 06:23:51, SREZIC wrote:
> > If LC_ALL=C is set, then t/lite_xhf.t fails: > > > > # Failed test '[lite/5-utf8.xhf] Japanese ns' > > # at t/lite_xhf.t line 122. > > # +---+--------------------------------------+--------------------------+ > > # | Ln|Got |Expected | > > # +---+--------------------------------------+--------------------------+ > > # | 1|'<h2>Hello</h2> |'<h2>Hello</h2> | > > # | 2|3 x 8 = 24 |3 x 8 = 24 | > > # * 3|\xff\xff\xff\xff\xff\xff\xff\xff\xff |\x{4e16}\x{754c}\x{ff01} * > > # | 4|' |' | > > # +---+--------------------------------------+--------------------------+ > > # Looks like you failed 1 test of 289. > > t/lite_xhf.t ........ > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/289 subtests > > (less 5 skipped subtests: 283 okay) > > > > > > > > The same test works fine with a utf-8 locale e.g. LC_ALL=de_DE.UTF-8. > > > > Regards, > > Slaven
> >