mailing list of musl libc
 help / color / mirror / code / Atom feed
From: idunham@lavabit.com
To: musl@lists.openwall.com
Subject: Re: R/GNU S: up with a couple hitches...
Date: Wed, 19 Sep 2012 00:44:41 -0400 (EDT)	[thread overview]
Message-ID: <43396.132.241.246.168.1348029881.squirrel@lavabit.com> (raw)
In-Reply-To: <20120919025956.GK254@brightrain.aerifal.cx>

> 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!

> As for the others (UTF-8, latin1, UCS-[24][BL]E, and ASCII) they
> should all be accepted just fine. But it would probably be smarter to
> use the standard name for latin1, ISO-8859-1.
>
> Rich
>
> ____________________________________________________________________________________
> Have questions about Online? Let Ask Find Your Answers Today!
> http://click.lavabit.com/ma8j8371x6rc36grpdg4csc38eh4wfjauifmaofnbuqiz13tbtfb/
> ____________________________________________________________________________________
>





  reply	other threads:[~2012-09-19  4:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13  4:29 idunham
2012-09-13  4:41 ` Rich Felker
2012-09-13  7:08   ` Daniel Cegiełka
2012-09-15  3:21     ` Isaac Dunham
2012-09-15  3:51       ` Rich Felker
2012-09-15  7:06         ` Isaac Dunham
2012-09-19  4:17           ` idunham
2012-09-15 10:54       ` Daniel Cegiełka
2012-09-19  0:19         ` idunham
2012-09-19  2:59           ` Rich Felker
2012-09-19  4:44             ` idunham [this message]
2012-09-19  4:39               ` Rich Felker
2012-11-25 17:58 ` Daniel Cegiełka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43396.132.241.246.168.1348029881.squirrel@lavabit.com \
    --to=idunham@lavabit.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).