Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15145

Re: built-in printf %f parameter format depend on LC_NUMERIC

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: built-in printf %f parameter format depend on LC_NUMERIC
Date 2019-07-12 15:50 -0400
Message-ID <mailman.1053.1562961060.2688.bug-bash@gnu.org> (permalink)
References (5 earlier) <91ed1981-df04-aa06-b108-23c7f89de3b4@case.edu> <4dde13d8-dc42-52b5-bc15-e5390f6d7ec5@archlinux.org> <a048b783-79c0-24fe-d456-deea9a50a149@case.edu> <51bed6f0-eeb8-c93b-33e7-6ccaf4d73b3f@blastwave.org> <a46a31ec-76b0-ccca-b867-831331413860@case.edu>

Show all headers | View raw


On 7/12/19 3:46 PM, Dennis Clarke wrote:

> uh huh ...
> 
>          LC_NUMERIC
> 
>              This category specifies the  decimal  and  thousands
>              delimiters.  The  information  corresponding to this
>              category is stored in a  database   created  by  the
>              localedef()    command.   The   default   C   locale
>              corresponds to "." as the decimal delimiter  and  no
>              thousands  delimiter.  This  environment variable is
>              used by localeconv(3C), printf(3C), and strtod(3C).

I assume this means that bc doesn't use strtod.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: built-in printf %f parameter format depend on LC_NUMERIC Chet Ramey <chet.ramey@case.edu> - 2019-07-12 15:50 -0400

csiph-web