mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: iconv output formats other than UTF-8
Date: Tue, 14 Nov 2017 00:41:27 -0500	[thread overview]
Message-ID: <20171114054127.GC1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <CA+T2pCGBc5=v+UygY7jY9he7qZLPn2oSPajz=SMZdVsEHidr8A@mail.gmail.com>

On Mon, Nov 13, 2017 at 10:32:35PM -0600, William Pitcock wrote:
> Hello,
> 
> A common complaint is that applications on Alpine cannot output in
> encodings other than UTF-8.
> 
> This causes problems with pre-existing IRC networks and other legacy
> services where a different text encoding is either preferred or
> required.
> 
> As such, this makes the iconv in musl deficient for these use cases.
> 
> A solution could be to link things like IRC clients against GNU
> libiconv instead, which we have done in the past on uClibc, but that
> could lead to other problems when a user observes inconsistent
> behavior with regards to iconv (one app works, the next app does not).
> 
> The better solution would be to somehow enable musl to output in
> encodings other than UTF-8.
> 
> We are open to contributing patches to enable this, but would like
> suggestions on how to proceed.
> 
> If it is unwanted work, please let us know, and we will just ship GNU
> libiconv instead.

It's only the legacy cjk encodings that don't havd output support in
iconv. This is because they're sufficiently large that reverse mapping
via linear search would be sliw, likely offensively slow. But it could
be added trivially.

Instead, we're researching how to make the mapping efficient without
huge reverse tables, and I think a good solution will be found.

BTW conversion *from* iso-2022-jp was just added in git master.

Rich




      reply	other threads:[~2017-11-14  5:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-14  4:32 William Pitcock
2017-11-14  5:41 ` Rich Felker [this message]

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=20171114054127.GC1627@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).