From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31460 invoked from network); 1 Dec 2020 16:22:06 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2020 16:22:06 -0000 Received: (qmail 19936 invoked by uid 550); 1 Dec 2020 16:22:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 19902 invoked from network); 1 Dec 2020 16:22:00 -0000 Date: Tue, 1 Dec 2020 11:21:47 -0500 From: Rich Felker To: Dong Brett Cc: musl@lists.openwall.com Message-ID: <20201201162146.GS534@brightrain.aerifal.cx> References: <62BA8BC9-9943-418A-8349-2B1FB962EDE9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Re: Question on C++ locale 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