Re: Standard alternative to Encode::Locale ?
Le Tue, Apr 29, 2014 at 08:43:19AM +0200, firstname.lastname@example.org a écrit :
> On Unixoids you might ask "locale" directly and try to parse its output (e.g.
> "locale -c charmap" or similar; we might want to figure out portability).
> But this is basically what Encode::Locale is doing anyway (through a library
> call, via I18N::Langinfo, that is). Since it's just a tiny wrapper around
> Langinfo, and since this one is part of the core perl distro, and since
> Encode::Locale takes care of all the little ugly edge cases one would have
> to learn the hard way (just look into the code to see what I mean ;-) --
> wouldn't it make sense to make it a dependency? Or to bless Encode::Locale
> into the "standard" category?
Many thanks, Tomás !
All I needed in the end was “decode(langinfo(CODESET())” given that the program
in which I will use it, “run-mailcap” is not intended to be used on Windows or
Mac OS, and therefore does not need the safeguards of Encode::Locale.
Have a nice week-end,
Tsurumi, Kanagawa, Japan