[illumos-Developer] webrev: POSIX style localedef & multibyte encoding support

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Mon Oct 4 07:46:16 PDT 2010


Alan Coopersmith <alan.coopersmith at oracle.com> wrote:

> > A quick grep of my mailbox reveals thousands of:
> > Content-type: text/plain; CHARSET=US-ASCII; format=flowed
> > 
> > I've no idea what a mail reader might do if that become an unknown
> > locale.
>
> Probably not even notice, since charset & locale are two different
> concepts, and I don't think Solaris has ever shipped a US-ASCII
> locale, since it doesn't match the locale name scheme - it would
> be something like en_US.ASCII to include region, language & charset.
>
> On Solaris, "locale -a" does not list US-ASCII, and both of these
> just show fallback to C:
> 	env LANG="US-ASCII" locale
> 	env LANG="bob" locale

US-ASCII is not a locale but a coding (see above, there is "CHARSET=US-ASCII"). 
You see it with iconv -l

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Developer mailing list