bug#65659: RFC: changing printf(1) behavior on %b

2023-08-31 Thread Chet Ramey
th C2x? It's maybe a two or three line change at most. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-29 Thread Chet Ramey
On 4/25/22 3:06 PM, Paul Eggert wrote: On 4/25/22 11:22, Chet Ramey wrote: Thanks for the input. You're welcome. Whenever you decide what to do about this, could you please let us know? I'd like coreutils printf to stay compatible with Bash printf. Thanks. I think I'm goin

bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-25 Thread Chet Ramey
On 4/25/22 11:03 AM, Paul Eggert wrote: On 4/11/22 11:52, Chet Ramey wrote: On 4/9/22 3:31 PM, Paul Eggert wrote: It sounds like there are three cases. 1. If the `L' modifier is supplied, as an extension (POSIX doesn't allow     length modifiers for the printf utility), use l

bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-11 Thread Chet Ramey
mode, use the existing code to get the highest possible precision, as the code has done for over 20 years. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/

bug#17196: UTF-8 printf string formating problem

2014-04-11 Thread Chet Ramey
On 4/11/14, 6:16 AM, Steffen Nurpmeso wrote: > Hello, > > Chet Ramey wrote: > |On 4/10/14, 12:16 PM, Steffen Nurpmeso wrote: > | > |> Even better would nonetheless be the great picture with > |> a termios(4) IUTF8 flag, some extended xywidth(3) that returns >

bug#17196: UTF-8 printf string formating problem

2014-04-10 Thread Chet Ramey
nction. But we have always been at war with EastAsia! -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/

bug#15278: -a vs -e

2013-09-05 Thread Chet Ramey
bullet points in the Posix description of `test' implies prioritization. - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/

bug#9129: Built-in printf Sits Awkwardly with UDP.

2011-07-25 Thread Chet Ramey
hat bash should do the same thing in printstr when presented with an overflowing field width that it does when using getint(). I will look at making that change. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/

bug#9129: Built-in printf Sits Awkwardly with UDP.

2011-07-25 Thread Chet Ramey
T_MAX, and goes on. The question is whether it should turn an out-of-range field width into 0, an error, or INT_{MIN,MAX}. Jim Meyering is correct when he says it's unspecified. Different implementations have gone different ways. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/

Re: test -t

2008-09-03 Thread Chet Ramey
ngs. This is covered in the man page and info document in the `test' builtin section, where the behavior is detailed based on the number of arguments supplied to `test'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRU