From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14635 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Schoepe Newsgroups: gmane.linux.lib.musl.general Subject: Re: printf doesn't respect locale Date: Tue, 10 Sep 2019 17:00:49 +0100 Message-ID: References: <20190909175452.GO9017@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="161771"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14651-gllmg-musl=m.gmane.org@lists.openwall.com Tue Sep 10 18:01:18 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1i7iZw-000fy5-9r for gllmg-musl@m.gmane.org; Tue, 10 Sep 2019 18:01:16 +0200 Original-Received: (qmail 23901 invoked by uid 550); 10 Sep 2019 16:01:13 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23879 invoked from network); 10 Sep 2019 16:01:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jbASdLYcQ9hcL3HFlSNCy02xod0LljLXFDlh74lvneo=; b=EN72sDyYpZPnljz0sWohMqlU8m9k7pGSzxXAWau4VLLbyHrccxzNzTbF2hZfYsNVj0 Bdy0GQcz0I0xwZaU3+1aXVAQ9DR2Yf93nap/h1dgus7DLHYf4lQGPlb3XodM0MNEsLx0 NXBU2prz2hqukz5Y/Em0G4vBwoFM4CezTc8LQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jbASdLYcQ9hcL3HFlSNCy02xod0LljLXFDlh74lvneo=; b=PJi3025Gx9B8Sr6XOvbXTy925VT7/2+BCE8FYVoNw+NMunieUhiFhzdHufJBeYT8jw SZZgZ8ntHkhVkmVazKWiSyZvMZJU1adwYjje0yoAPxSqqm3NQA0PyVnKBSdPTwTBIuDH CfJQyD33ZLCVbaS1Hm7eMH2GkJ080pbVbMZZUtjM20N/dMpAqEbkqUw65wuD02MHJI1J TC6TIhEjSk+2X9emq14s9EVDJEvZxSxvrEBtDrbxBPuIljrw6bpU+IwtzFms6+kuJ55w rWVZVYWNYXAw4irNl/eQvajGgkMD4zs7up/pnNkBECM9avMzPOciJ0Xndu4PK7LOop4l 0p3A== X-Gm-Message-State: APjAAAWOlnNbqXzsezUHhe9DD43QZ2NjfJKCr1aZbSpcg+RYRx1O6dSo FDtLW086Nrsi6oqjDDj7Tammt36SwRNpVNqVYwW9Nmvg4Gk= X-Google-Smtp-Source: APXvYqwbiH9dCuR4B+y/IP+oiLZLalCXBq0HGN5mhVbrOdgj3UFmEqI1sRqgFU6VOF31d7xlPxIoE04JikKADE4jD9E= X-Received: by 2002:ac8:34c9:: with SMTP id x9mr30673522qtb.65.1568131260832; Tue, 10 Sep 2019 09:01:00 -0700 (PDT) In-Reply-To: <20190909175452.GO9017@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14635 Archived-At: On Mon, Sep 9, 2019 at 6:55 PM Rich Felker wrote: > It's not a discrepancy; the set of locales supported by an > implementation, unless it includes the POSIX localedef utility/option, > is implementation-defined. musl's definition does not include locales > where the radix point is not '.' Thanks, that makes sense. However, it may make sense to document this assumption in the FAQ entries related to printf. > I really really really don't like the feature of changing the radix > point, and this implementation choice was intentional, but it's come > up several times with people being upset that it's not in line with > musl's mission of being multilingual-friendly. I think it deserves > some consideration again along with upcoming locale improvements. > There's at least one past thread with design sketches on how it would > need to be done (and what needs to be done anyway for LC_MONETARY > stuff), and sadly it got no feedback from people interested in > improved locale functionality which is why I've kinda let it be for > the time being... I'm also not a fan of this behavior, I actually stumbled across this when tracking down a bug the different radix usage caused. Best, Daniel > > Rich