This queue is for tickets about the Unicode-CaseFold CPAN distribution.

Report information
The Basics
Id:
82413
Status:
rejected
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
victor [...] vsespb.ru
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
(no value)
Fixed in:
(no value)



Subject: CaseFoldPP module interface a bit broken
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 271
The only way to use it is perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFold->case_fold(1)' the following does not work: perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFoldPP->case_fold(1)' perl -MUnicode::CaseFoldPP -e 'case_fold(1)' perl -MUnicode::CaseFoldPP -e 'fc(1)'
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-19632-1357331410-1914.82413-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 715
On Fri Jan 04 13:49:23 2013, vsespb wrote:
Show quoted text
> The only way to use it is > > perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFold->case_fold(1)' > > the following does not work: > > perl -MUnicode::CaseFoldPP -e 'Unicode::CaseFoldPP->case_fold(1)' > perl -MUnicode::CaseFoldPP -e 'case_fold(1)' > perl -MUnicode::CaseFoldPP -e 'fc(1)'
Hi, there is no CaseFoldPP interface; it's an internal package. The only interface you should be using, and the only module you should be "use"ing, is Unicode::CaseFold. It will use XS whenever it's available, and pure perl if it's not. If you want to force PP even if XS is available (perhaps for debugging), set $ENV{PERL_UNICODE_CASEFOLD_PP} = 1 before loading the module.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.