Skip Menu |

This queue is for tickets about the Search-Tools CPAN distribution.

Report information
The Basics
Id: 54941
Status: resolved
Priority: 0/
Queue: Search-Tools

People
Owner: karman [...] cpan.org
Requestors: jjnapiork [...] cpan.org
Cc:
AdminCc:

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



Hi, I'm getting what I assume is a false failure when running the test suite: # queryparser (keywords) locale: en_US.utf-8 # setlocale(LC_CTYPE) = en_US.UTF-8 # setlocale(LC_ALL) = en_US.UTF-8 # Failed test 'UTF-8 charset' # at t/09locale.t line 24. # got: 'utf-8' # expected: 'UTF-8' # Looks like you failed 1 test of 2. t/09locale.t .................. Dubious, test returned 1 (wstat 256, 0x100) I'm getting this from perl 5.10.1 on Mac OSX 10.6, and I know for a fact there's a minor quirk with the Mac locale stuff. However I doubt there's a big difference between "utf-8" and 'UTF-8' :) Force installing and running everything seems fine and the remaining several thousand tests run fine. Let me know what else I can do to help fix this. I was thinking it would be as simple as: - is( $kw->charset, 'UTF-8', "UTF-8 charset" ); + is( uc($kw->charset), 'UTF-8', "UTF-8 charset" ); and I also complained to Apple about their non standad locale files. Thanks!
fixed in 0.44, just uploaded to pause.
Subject: Re: [rt.cpan.org #54941]
Date: Wed, 24 Feb 2010 09:46:22 -0600
To: bug-Search-Tools [...] rt.cpan.org
From: Peter Karman <peter [...] peknet.com>
John Napiorkowski via RT wrote on 02/24/2010 09:35 AM: Show quoted text
> Wed Feb 24 10:35:41 2010: Request 54941 was acted upon. > Transaction: Ticket created by JJNAPIORK > Queue: Search-Tools > Subject: (No subject given) > Broken in: 0.43 > Severity: Important > Owner: Nobody > Requestors: jjnapiork@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=54941 > > > > Hi, > > I'm getting what I assume is a false failure when running the test suite: > > # queryparser (keywords) locale: en_US.utf-8 > # setlocale(LC_CTYPE) = en_US.UTF-8 > # setlocale(LC_ALL) = en_US.UTF-8 > > # Failed test 'UTF-8 charset' > # at t/09locale.t line 24. > # got: 'utf-8' > # expected: 'UTF-8' > # Looks like you failed 1 test of 2. > t/09locale.t .................. > Dubious, test returned 1 (wstat 256, 0x100) > > I'm getting this from perl 5.10.1 on Mac OSX 10.6, and I know for a fact > there's a minor quirk with the Mac locale stuff. However I doubt > there's a big difference between "utf-8" and 'UTF-8' :) Force > installing and running everything seems fine and the remaining several > thousand tests run fine. > > Let me know what else I can do to help fix this. I was thinking it > would be as simple as: > > - is( $kw->charset, 'UTF-8', "UTF-8 charset" ); > + is( uc($kw->charset), 'UTF-8', "UTF-8 charset" ); > > and I also complained to Apple about their non standad locale files. >
Hi John, Thanks for the bug report. I develop under OSX 10.6 so it's a little odd that I haven't seen this before. Out of curiousity: is the drive where your locale files are installed formatted with HFS+ or a case-sensitive fs? I'll patch the test shortly. pek -- Peter Karman . http://peknet.com/ . peter@peknet.com
On Wed Feb 24 11:01:19 2010, peter@peknet.com wrote: Show quoted text
> John Napiorkowski via RT wrote on 02/24/2010 09:35 AM:
> > Wed Feb 24 10:35:41 2010: Request 54941 was acted upon. > > Transaction: Ticket created by JJNAPIORK > > Queue: Search-Tools > > Subject: (No subject given) > > Broken in: 0.43 > > Severity: Important > > Owner: Nobody > > Requestors: jjnapiork@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=54941 > > > > > > > Hi, > > > > I'm getting what I assume is a false failure when running the test
suite: Show quoted text
> > > > # queryparser (keywords) locale: en_US.utf-8 > > # setlocale(LC_CTYPE) = en_US.UTF-8 > > # setlocale(LC_ALL) = en_US.UTF-8 > > > > # Failed test 'UTF-8 charset' > > # at t/09locale.t line 24. > > # got: 'utf-8' > > # expected: 'UTF-8' > > # Looks like you failed 1 test of 2. > > t/09locale.t .................. > > Dubious, test returned 1 (wstat 256, 0x100) > > > > I'm getting this from perl 5.10.1 on Mac OSX 10.6, and I know for a fact > > there's a minor quirk with the Mac locale stuff. However I doubt > > there's a big difference between "utf-8" and 'UTF-8' :) Force > > installing and running everything seems fine and the remaining several > > thousand tests run fine. > > > > Let me know what else I can do to help fix this. I was thinking it > > would be as simple as: > > > > - is( $kw->charset, 'UTF-8', "UTF-8 charset" ); > > + is( uc($kw->charset), 'UTF-8', "UTF-8 charset" ); > > > > and I also complained to Apple about their non standad locale files. > >
> > Hi John, > > Thanks for the bug report. > > I develop under OSX 10.6 so it's a little odd that I haven't seen this > before. Out of curiousity: is the drive where your locale files are > installed formatted with HFS+ or a case-sensitive fs?
Wow, you are really fast :) I compiled perl 5.10.1 manually into my local $HOME since I generally prefer to not touch the system Perl. It's possible I should have set something when compiling; I just compiled it with all the defaults. So that could account for part of the difference. I will examine locale.h a bit and see what I can find. thanks again! Show quoted text
> > I'll patch the test shortly. > > pek > >