From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1957 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: R/GNU S: up with a couple hitches... Date: Wed, 19 Sep 2012 00:39:03 -0400 Message-ID: <20120919043903.GL254@brightrain.aerifal.cx> References: <36368.132.241.18.70.1347510547.squirrel@lavabit.com> <20120913044127.GW27715@brightrain.aerifal.cx> <20120914202107.6a24db02.idunham@lavabit.com> <52586.132.241.246.168.1348013957.squirrel@lavabit.com> <20120919025956.GK254@brightrain.aerifal.cx> <43396.132.241.246.168.1348029881.squirrel@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1348030065 15093 80.91.229.3 (19 Sep 2012 04:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2012 04:47:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1958-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 19 06:47:50 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TECCS-0001N0-HR for gllmg-musl@plane.gmane.org; Wed, 19 Sep 2012 06:47:48 +0200 Original-Received: (qmail 30232 invoked by uid 550); 19 Sep 2012 04:47:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30224 invoked from network); 19 Sep 2012 04:47:43 -0000 Content-Disposition: inline In-Reply-To: <43396.132.241.246.168.1348029881.squirrel@lavabit.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1957 Archived-At: On Wed, Sep 19, 2012 at 12:44:41AM -0400, idunham@lavabit.com wrote: > > On Tue, Sep 18, 2012 at 08:19:17PM -0400, idunham@lavabit.com wrote: > >> BTW, Rich, here's what that page says about iconv: > >> | The R usage requires iconv to be able to translate between "latin1" > >> | and "UTF-8", to recognize "" (as the current encoding) and "ASCII", > >> | and to translate to and from the Unicode wide-character formats > >> | "UCS-[24][BL]E" > >> How much of this should musl support? > > > > I've never heard of using "" (blank string) to mean "the current > > encoding". If it's documented usage for glibc, it must be buried > > somewhere in the docs; it's definitely not a standard usage. The > > standard way to get the locale's encoding is nl_langinfo(CODESET); on > > any good implementation it will be accepted as an argument to > > iconv_open. > Here's what the glibc docs say > (http://www.gnu.org/software/libc/manual/html_node/Standard-Locales.html#Standard-Locales): > === > The only locale names you can count on finding on all operating systems > are these three standard ones: > > "C" > This is the standard C locale. The attributes and behavior it provides > are specified in the ISO C standard. When your program starts up, it > initially uses this locale by default. > "POSIX" > This is the standard POSIX locale. Currently, it is an alias for the > standard C locale. > "" > The empty name says to select a locale based on environment variables. > See Locale Categories. > === > Not that they accurately represent facts outside glibc! Those are _locale_ names. Nothing to do with charset names passed to iconv. Rich