Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 91804
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: ilmari [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 3.0.0



Subject: [PATCH] Explicitly specify en_US for spell checking
Date: Thu, 2 Jan 2014 21:18:39 +0100
To: bug-DBD-Pg [...] rt.cpan.org
From: Dagfinn Ilmari Mannsåker <ilmari [...] ilmari.org>
Text::SpellChecker by default respects $LANG if set, so we need to make sure to override that, since the manual is in US English. --- t/99_spellcheck.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/99_spellcheck.t b/t/99_spellcheck.t index f4a7d14..e1b86cb 100644 --- a/t/99_spellcheck.t +++ b/t/99_spellcheck.t @@ -39,7 +39,7 @@ while (<DATA>) { sub spellcheck { my ($desc, $text, $filename) = @_; - my $check = Text::SpellChecker->new(text => $text); + my $check = Text::SpellChecker->new(text => $text, lang => 'en_US'); my %badword; while (my $word = $check->next_word) { next if $okword{Common}{$word} or $okword{$filename}{$word}; -- 1.8.3.2
On Thu Jan 02 15:19:06 2014, ilmari@ilmari.org wrote: Show quoted text
> Text::SpellChecker by default respects $LANG if set, so we need to make > sure to override that, since the manual is in US English.
Ha ha ha, you mean someone else besides me runs this test?! :) Patched, thanks. 437dbc71fa647640d288e23b20049876e687f632