mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Jens Gustedt <jens.gustedt@inria.fr>
To: musl@lists.openwall.com
Subject: Re: [PATCH] implement a private state for the uchar.h functions
Date: Tue, 11 Nov 2014 17:03:46 +0100	[thread overview]
Message-ID: <1415721826.2457.1743.camel@eris.loria.fr> (raw)
In-Reply-To: <20141111143900.GJ22465@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]

Am Dienstag, den 11.11.2014, 09:39 -0500 schrieb Rich Felker:
> On Tue, Nov 11, 2014 at 02:53:02PM +0100, Jens Gustedt wrote:
> >  - having a standard way to specify unicode characters inside a string
> >    of any kind through \u and \U is really a great achievement
> 
> Yes and no. I don't think anyone really wants to use these. They're
> unreadable except when used extremely sparingly, and embedding natural
> language text in source is widely frowned upon anyway which limits the
> usefulness. But it is nice to at least have a way if/when you need it.

yes

Unicode is not only for natural language scripts, but also graphics,
mathematics, IPA, other technical stuff and smilies ☺

So for these usages this might come handy.


> >  - introducing a u8 prefix for strings that guarantees utf8 encoding
> >    for mbs sounds nice. But then there is nothing that relates these
> >    to "normal" string literals. What are we supposed to do with these?
> 
> Process them with your own code,

at some point I thought the C library was there to provide the basics
for interacting with the environment, probably much too naive :)

> or just pass them to external
> interfaces that expect UTF-8 (e.g. filesystem structures, network
> protocols, etc.).

right, good point

Jens

-- 
:: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536   ::
:: :::::::::::::::::::::: gsm France : +33 651400183   ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-11-11 16:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-09 10:18 Jens Gustedt
2014-11-11  3:21 ` Rich Felker
2014-11-11 13:53   ` Jens Gustedt
2014-11-11 14:39     ` Rich Felker
2014-11-11 16:03       ` Jens Gustedt [this message]
2014-11-15 17:29 ` Rich Felker
2014-11-15 17:57   ` Jens Gustedt
2014-11-15 20:10     ` 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=1415721826.2457.1743.camel@eris.loria.fr \
    --to=jens.gustedt@inria.fr \
    --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).