mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Harald Becker <ralda@gmx.de>
To: musl@lists.openwall.com
Subject: Re: Build option to disable locale [was: Byte-based C locale, draft 1]
Date: Mon, 08 Jun 2015 01:59:35 +0200	[thread overview]
Message-ID: <5574DAE7.8040101@gmx.de> (raw)
In-Reply-To: <20150607002459.GA17573@brightrain.aerifal.cx>

On 07.06.2015 02:24, Rich Felker wrote:
> It's somewhat more clear what you're talking about, but I'm still not
> sure what specific pieces of code you would want to omit from libc.so.
> Which of the following would you want to remove or keep?

I did not look into all the details ...

In general: Keep the API, but add stubs with minimal operation or fail 
for none C locale (etc.).

> - UTF-8 encoding and decoding

May be of use to keep, if on bare minimum.

> - Character properties
 > - Case mappings

Keep ASCII, map all none ASCII to a single value.

> - Internal message translation (nl_langinfo strings, errors, etc.)
 > - Message translation API (gettext)

No translation at all, keep the English messages (as short as possible).

> - Charset conversion (iconv)

Copy ASCII / UTF-8, but fail for all other.

> - Non-ASCII characters in regex and fnmatch patterns/brackers

May be the question to allow for UTF-8, but only those, no other 
charsets (should allow to do some optimization and avoid all the 
extended overhead).

fnmatch: Match None ASCII just 1:1, no other special operation.

regex: Don't have the experience on the internals of this topic. In 
general allow for 1:1 matching of none ASCII characters, but otherwise 
behave as C locale (e.g. equivalence classes).

--
Harald



  reply	other threads:[~2015-06-07 23:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-06 21:40 [PATCH] Byte-based C locale, draft 1 Rich Felker
2015-06-06 22:39 ` Harald Becker
2015-06-06 23:10   ` Rich Felker
2015-06-06 23:59     ` Harald Becker
2015-06-07  0:24       ` Rich Felker
2015-06-07 23:59         ` Harald Becker [this message]
2015-06-08  0:28           ` Build option to disable locale [was: Byte-based C locale, draft 1] Josiah Worcester
2015-06-08  1:57             ` Harald Becker
2015-06-08  2:36               ` Rich Felker
2015-06-08  3:35                 ` Harald Becker
2015-06-08  3:51                   ` Josiah Worcester
2015-06-08  0:33           ` Rich Felker
2015-06-08  2:46             ` Harald Becker
2015-06-08  4:06               ` Rich Felker
2015-06-09  3:20               ` Isaac Dunham
2015-06-09  4:27                 ` Rich Felker
2015-06-07  1:17 ` [PATCH] Byte-based C locale, draft 1 Rich Felker
2015-06-07  2:50 ` Rich Felker
2015-06-13  7:06   ` [PATCH] Byte-based C locale, draft 2 Rich Felker
2015-06-16  4:26     ` Rich Felker
2015-06-16  4:35       ` Rich Felker

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=5574DAE7.8040101@gmx.de \
    --to=ralda@gmx.de \
    --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).