mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Dong Brett <brett.browning.dong@gmail.com>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Re: Question on C++ locale
Date: Tue, 1 Dec 2020 11:21:47 -0500	[thread overview]
Message-ID: <20201201162146.GS534@brightrain.aerifal.cx> (raw)
In-Reply-To: <BF9AD5B6-492F-46A7-AF65-17D983C851E1@gmail.com>

On Tue, Dec 01, 2020 at 11:53:21AM +0800, Dong Brett wrote:
> Hi all,
> 
> Thank you all for your replies! I tried Samuel’s patch and it works
> with our application perfectly!

FYI the patch does not make the C++ locale API work, but it does let
you use std::locale::global(locale("")); as a C++-flavored substitute
for setlocale(LC_ALL,""); Interfaces which takes explicit locale
objects will not work still.

Rich


      reply	other threads:[~2020-12-01 16:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-30 10:41 [musl] " Dong Brett
2020-11-30 11:31 ` Szabolcs Nagy
2020-11-30 11:58   ` Dong Brett
2020-11-30 11:35 ` Szabolcs Nagy
2020-11-30 12:37   ` Érico Nogueira
2020-11-30 13:44   ` Érico Nogueira
2020-11-30 14:39     ` Samuel Holland
2020-11-30 14:48       ` Rich Felker
2020-11-30 15:12       ` Érico Nogueira
2020-11-30 15:35         ` Rich Felker
2020-11-30 17:14           ` Érico Nogueira
2020-11-30 18:11             ` Rich Felker
2020-11-30 14:51 ` Rich Felker
2020-12-09 14:35   ` Érico Nogueira
2020-12-09 16:41     ` Rich Felker
2020-12-01  3:53 ` [musl] " Dong Brett
2020-12-01 16:21   ` 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=20201201162146.GS534@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=brett.browning.dong@gmail.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).