tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: how to determine codeset of the current locale?
hi,
> How can I determine the codeset of the current locale within a shell
> script in order to supply the missing second option on NetBSD < 5?
>
use locale(1) -k charmap (...unfortunately undocumented in man 1 locale).
$ locale -k charmap | sed -E 's/^charmap="(.+)"$/\1/'
very truly yours.
--
Takehiko NOZAKI<takehiko.nozaki%gmail.com@localhost>
Home |
Main Index |
Thread Index |
Old Index