in Solaris 8, the "C" locale uses a charset which is unknown to Perl:
#! /local/bin/perl use I18N::Langinfo qw(langinfo CODESET); my $term_encoding = langinfo(CODESET()); binmode STDOUT, ":encoding($term_encoding)"; print "Locale's charset: $term_encoding\n"; when I run the above script, I get this output: $ LC_CTYPE=C /tmp/foo.pl Cannot find encoding "646" at /tmp/foo.pl line 6. Locale's charset: 646 $ LC_CTYPE=en_US /tmp/foo.pl Locale's charset: ISO8859-1 I request you add "646" as an alias for "ascii". the test was done with Perl 5.8.8. (I'm not on the list, so please Cc any replies.) -- Kjetil T.