I have a module, Math::Currency, which tries to be very smart with regard to 
POSIX locale settings when defining the default currency formatting.  However, 
since I can only test on _my_ systems, I am limited in my ability to guess all 
of the strange locale settings that may be in use.

Specifically, in order to test that the locale stuff is working, I need to have 
two different locales installed to switch between.  Currently, I am using en_US 
and en_GB, but obviously that ignores most of the planet.

I was hoping to get some suggestion for how I can go about being sensitive about 
how I do these tests, so that I get as few misleading failures as possible.  One 
thought I had was to test for a series of locales during the Makefile.PL 
processing, then update the t/test.t file for some combination of the installed 
locales.  The problem I have already identified is that `locale -a` may report 
erroneous information (partially installed locales), so I am going to have to 
poke around some more.

In particular, I know I am going to have to skip that testing entirely on 
platforms without any locale support (like CygWin), but I am still going to have 
some issues where I may only have a single locale fully installed to test.  I 
need something like the opposite of TODO, so that I can have failures but warn 
that those failures are acceptable with caveats.  I really need 'ok', 'not ok', 
and 'not ok but not to worry too much' so I can handle all the various 
possibilities.

Suggestions gratefully accepted.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Reply via email to