NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Thursday May 13, 2004
09:53 AM
PerlIO::locale
I have a new module,
PerlIO::locale,
on CPAN. It's a trivial piece of DWIM -- a subclass of
PerlIO::encoding
that guesses the encoding from the current locale. However, there are a
couple of interesting points:
- It's statically linked with encoding.so, to correctly get
pointers on the internal PerlIO functions defined by it. Better ideas
welcome.
- It has no tests. (Well, it has one test: use_ok.) It's
typically difficult to write portable tests for this kind of modules, without
knowing which locales are available on the tester's machine, then switching
locales appropriately, etc. I'll have to figure out a way to do it without
being too tired.
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
PerlIO::locale 0 Comments More | Login | Reply /